nicholai-work-2026/worker/wrangler.toml
Nicholai 3cabd007a8 feat(terminal): add rust worker for terminal UI
add cloudflare worker that serves ANSI terminal UI when site is
accessed via curl/wget/terminal clients. browsers get the normal
astro site through proxy to pages.

- user-agent detection for terminal clients
- ANSI 256-color rendering with box-drawing
- content matches site aesthetic (red/cyan accent)
- removes suspicious HTML_MARKER from consts.ts
2026-01-20 05:26:52 -07:00

11 lines
303 B
TOML

name = "nicholai-terminal-worker"
main = "build/worker/shim.mjs"
compatibility_date = "2025-12-05"
[build]
command = "cargo install -q worker-build && worker-build --release"
# The worker will proxy browser requests to the Pages deployment
[vars]
PAGES_ORIGIN = "https://nicholai-work-2026.pages.dev"