Repository navigation
SF1: the site on Workers - #2
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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