Skip to content

SF1: the site on Workers - #2

Merged
pullely merged 1 commit into
mainfrom
orun/SF-2-the-site-on-workers
Oct 28, 2026
Merged

pullely merged 1 commit into
mainfrom
orun/SF-2-the-site-on-workers

Conversation

@pullely

@pullely pullely commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

mearashadowfax/ScrewFast (main at 86b25a9; the repository has no release tags) in apps/web, built fully static (output: 'static', no adapter) and deployed as Workers Static Assets: astro build writes every marketing page in English and French, product, post, insight and Starlight docs page in seven languages to dist/, optimising every image with sharp, Starlight's Pagefind indexes the docs, and the template's minifier rewrites the pages; one small Worker (worker/index.ts) answers what matches no file with the site's 404 page and, under /fr/, the French one with a 404 — vercel.json's /fr/:path* rewrite — and public/_headers carries vercel.json's security headers. Directory URLs (html_handling auto-trailing-slash). The site's name is one seam (src/site.ts SITE_NAME): the copy tables' strings that named the company are template literals over it, the features, pricing and FAQ data (both languages) TypeScript modules doing the same, and the constants, the logos' labels, the web app manifest and Starlight's title read it; the Starlight logo files no longer spell the slug. Each deploy builds for its own origin (PUBLIC_SITE_URL: SITE_URL, else the environment's workers.dev URL) through astro.config.mjs's site, which the canonical and hreflang links read; the GitHub links point at the site's own repository and the contact address is on its domain. Astro is held at 7.3.8 and MDX at 8.1.0 (an override, Starlight's copy too: 7.4 and 8.1.1 need Node 22.23.4). component.yaml is the deploy contract with a smoke over /, /products/, the docs and their search index, and both 404s. Tests over Astro's container API (the seam rendered under another name, the origin, the Worker). typecheck, lint (the template's prettier --check), test and build are green, and wrangler dev serves every page in both languages, the docs in all seven, the search index, the headers and both 404 pages.

🤖 Generated with Claude Code

mearashadowfax/ScrewFast (main at 86b25a9; the repository has no release tags) in apps/web, built fully static (output: 'static', no adapter) and deployed as Workers Static Assets: astro build writes every marketing page in English and French, product, post, insight and Starlight docs page in seven languages to dist/, optimising every image with sharp, Starlight's Pagefind indexes the docs, and the template's minifier rewrites the pages; one small Worker (worker/index.ts) answers what matches no file with the site's 404 page and, under /fr/, the French one with a 404 — vercel.json's /fr/:path* rewrite — and public/_headers carries vercel.json's security headers. Directory URLs (html_handling auto-trailing-slash). The site's name is one seam (src/site.ts SITE_NAME): the copy tables' strings that named the company are template literals over it, the features, pricing and FAQ data (both languages) TypeScript modules doing the same, and the constants, the logos' labels, the web app manifest and Starlight's title read it; the Starlight logo files no longer spell the slug. Each deploy builds for its own origin (PUBLIC_SITE_URL: SITE_URL, else the environment's workers.dev URL) through astro.config.mjs's site, which the canonical and hreflang links read; the GitHub links point at the site's own repository and the contact address is on its domain. Astro is held at 7.3.8 and MDX at 8.1.0 (an override, Starlight's copy too: 7.4 and 8.1.1 need Node 22.23.4). component.yaml is the deploy contract with a smoke over /, /products/, the docs and their search index, and both 404s. Tests over Astro's container API (the seam rendered under another name, the origin, the Worker). typecheck, lint (the template's prettier --check), test and build are green, and wrangler dev serves every page in both languages, the docs in all seven, the search index, the headers and both 404 pages.

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: SF-2
@pullely
pullely merged commit ba42d3d into main Oct 28, 2026
2 checks passed
@pullely
pullely deleted the orun/SF-2-the-site-on-workers branch October 28, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants