Skip to content

AP1: the blog on Workers - #2

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

pullely merged 1 commit into
mainfrom
orun/AP-2-the-blog-on-workers

Conversation

@pullely

@pullely pullely commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

satnaing/astro-paper (v6.1.0 and one fix) in apps/web, built fully static (output: 'static', no adapter) and deployed as Workers Static Assets: astro build writes every page, post, tag page, feed, sitemap and Open Graph image (satori and sharp, at build time) to dist/, pagefind indexes it into dist/pagefind, and one small Worker (worker/index.ts) hands requests matching no file back to the assets for the site's 404 page. Directory URLs as the theme's own Cloudflare Pages demo serves them (html_handling auto-trailing-slash). The site's name is one seam (src/site.ts SITE_NAME), read as site.title by astro-paper.config.ts; each deploy builds for its own origin (PUBLIC_SITE_URL: SITE_URL, else the environment's workers.dev URL) through astro.config.ts's site, which src/config.ts reads back for the feed and the images; the edit-post and GitHub links point at the site's own repository. Astro is held at 7.3.8 (7.4 needs Node 22.23.4). component.yaml is the deploy contract with a smoke over /, /posts/, the search index and a 404. Tests over Astro's container API (the name seam, the header, the origin, the Worker). typecheck, lint, test and build are green, and wrangler dev serves every page, post, tag page, image, feed, sitemap and the search index.

🤖 Generated with Claude Code

satnaing/astro-paper (v6.1.0 and one fix) in apps/web, built fully static (output: 'static', no adapter) and deployed as Workers Static Assets: astro build writes every page, post, tag page, feed, sitemap and Open Graph image (satori and sharp, at build time) to dist/, pagefind indexes it into dist/pagefind, and one small Worker (worker/index.ts) hands requests matching no file back to the assets for the site's 404 page. Directory URLs as the theme's own Cloudflare Pages demo serves them (html_handling auto-trailing-slash). The site's name is one seam (src/site.ts SITE_NAME), read as site.title by astro-paper.config.ts; each deploy builds for its own origin (PUBLIC_SITE_URL: SITE_URL, else the environment's workers.dev URL) through astro.config.ts's site, which src/config.ts reads back for the feed and the images; the edit-post and GitHub links point at the site's own repository. Astro is held at 7.3.8 (7.4 needs Node 22.23.4). component.yaml is the deploy contract with a smoke over /, /posts/, the search index and a 404. Tests over Astro's container API (the name seam, the header, the origin, the Worker). typecheck, lint, test and build are green, and wrangler dev serves every page, post, tag page, image, feed, sitemap and the search index.

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: AP-2
@pullely
pullely merged commit 49908a5 into main Oct 28, 2026
2 checks passed
@pullely
pullely deleted the orun/AP-2-the-blog-on-workers branch October 28, 2026 07:00
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