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
11 lines
303 B
TOML
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"
|