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
16 lines
220 B
TOML
16 lines
220 B
TOML
[package]
|
|
name = "nicholai-terminal-worker"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
worker = "0.7"
|
|
console_error_panic_hook = "0.1"
|
|
|
|
[profile.release]
|
|
opt-level = "s"
|
|
lto = true
|