Skip to content

AW1: the site on Workers - #2

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

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

Conversation

@pullely

@pullely pullely commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

AstroWind in apps/web, built fully static (output: 'static', no adapter) and deployed as Workers Static Assets: dist/ uploaded with one small Worker (worker/index.ts) that hands requests matching no file back to the assets for the site's 404 page. vercel.json's cleanUrls and trailingSlash become html_handling drop-trailing-slash, its /_astro cache header is public/_headers. The site's name is one seam (src/site.ts SITE_NAME) read by the theme's config builder; the theme's virtual module and integration are renamed theme, because this repository's slug is the template's name and a rename would break the import. Each deploy builds for its own origin (PUBLIC_SITE_URL: SITE_URL, else the environment's workers.dev URL). component.yaml is the deploy contract with a smoke over /, /blog and a 404. Tests over Astro's container API (the name seam, the header, the Worker). typecheck, lint, test and build are green, and wrangler dev serves every page, post, demo, feed and sitemap.

🤖 Generated with Claude Code

AstroWind in apps/web, built fully static (output: 'static', no adapter) and deployed as Workers Static Assets: dist/ uploaded with one small Worker (worker/index.ts) that hands requests matching no file back to the assets for the site's 404 page. vercel.json's cleanUrls and trailingSlash become html_handling drop-trailing-slash, its /_astro cache header is public/_headers. The site's name is one seam (src/site.ts SITE_NAME) read by the theme's config builder; the theme's virtual module and integration are renamed theme, because this repository's slug is the template's name and a rename would break the import. Each deploy builds for its own origin (PUBLIC_SITE_URL: SITE_URL, else the environment's workers.dev URL). component.yaml is the deploy contract with a smoke over /, /blog and a 404. Tests over Astro's container API (the name seam, the header, the Worker). typecheck, lint, test and build are green, and wrangler dev serves every page, post, demo, feed and sitemap.

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: AW-2
@pullely
pullely merged commit 62da877 into main Oct 28, 2026
2 checks passed
@pullely
pullely deleted the orun/AW-2-the-site-on-workers branch October 28, 2026 04:26
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