Repository navigation
AP1: the blog on Workers - #2
Merged
Merged
Conversation
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
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.
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