mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
Dependencies and build for dev's toolchain (released solid-start, nitro 3.0.260903-beta, @typescript/native, no nitro patch), the textjs package, link preview cards (script/og.ts, with the source frames it crops) and the server-bundle guard in the build. Middleware (redirects for /go, /zen, /black, /enterprise, /pricing, /models, /teams, /download, /products, plus dev's iOS pairing, server-action sanitizing and /auth, /workspace), robots.txt, humans.txt, security.txt, llms.txt (ours), sitemaps with the V2 docs at /v2/sitemap.xml, Markdown twins, link preview cards, the site header (our nav including Enterprise), footer, settings, search, voice, i18n in 18 locales with RTL, and the 404 arcade. Docs stay on dev's proxy: docsBase is /v2/docs. consoleMarketingEnabled is kept for dev's test. Zen is renamed OpenCode Models in our copy. Middleware sends heavy media to the CDN (src/lib/media.ts). Vite keeps one environments block. The mono font is OpenTUI Mono (Anomaly's, SIL OFL 1.1): the files and licence are in src/asset/fonts, built by script/opentui-mono.py. The legal library has the Privacy Policy and the Terms only; the legal drafts are not in this branch.
59 lines
2.6 KiB
Text
59 lines
2.6 KiB
Text
# Cache headers for the static files in public/ (Cloudflare Workers static assets; SST uploads
|
|
# .output/public/_headers with the assets). Nitro appends its own /_build/assets/* rule (hashed
|
|
# build files, immutable). Rules must not overlap: Cloudflare joins repeated headers with a comma.
|
|
#
|
|
# Only files whose name changes with their content are immutable. The media below keep their URL
|
|
# when re-rendered in place, so browsers and the edge may keep them for a day and serve a stale
|
|
# copy for up to a week while they revalidate.
|
|
|
|
/textjs/chunk-*
|
|
Cache-Control: public, max-age=31536000, immutable
|
|
/textjs/lite-*
|
|
Cache-Control: public, max-age=31536000, immutable
|
|
/textjs/picker-*
|
|
Cache-Control: public, max-age=31536000, immutable
|
|
# Link preview cards, named by a hash of the PNG (script/og.ts).
|
|
/og/*
|
|
Cache-Control: public, max-age=31536000, immutable
|
|
# The optimised video and still copies, named by a hash of the file (media.tsx).
|
|
/media/*
|
|
Cache-Control: public, max-age=31536000, immutable
|
|
|
|
/product-videos/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/press-media/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/press/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/brand/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/social-share*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/logos/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/providers/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/apps/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/avatars/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/voice/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/font/film/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/arcade3d/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/arcade404/*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/opencode-press-media.zip
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/opencode-brand-assets.zip
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/favicon*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/apple-touch-icon*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/web-app-manifest-*
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|
|
/site.webmanifest
|
|
Cache-Control: public, max-age=86400, stale-while-revalidate=604800
|