Skip to content

Fix Cloudflare build and cache Astro assets - #21

Merged
Elvis020 merged 1 commit into
mainfrom
feature/cloudflare-build-cache
Aug 1, 2026
Merged

Fix Cloudflare build and cache Astro assets#21
Elvis020 merged 1 commit into
mainfrom
feature/cloudflare-build-cache

Conversation

@Elvis020

@Elvis020 Elvis020 commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix Cloudflare's dependency installation, cache generated Astro assets, and refresh meetup data daily.

Changes

  • Declare the repository root as the pnpm workspace package.
  • Cache fingerprinted /_astro/* assets for one year with immutable semantics.
  • Keep HTML on Cloudflare's default revalidation and ETag policy.
  • Run the existing GitHub Pages and Cloudflare builds daily at 06:17 UTC.

Verification

  • Frozen install with Cloudflare's pnpm 10.11.1
  • Frozen install with pnpm 10.24.0
  • pnpm build: 9 meetups and 11 pages
  • Wrangler deployment dry run

@Elvis020
Elvis020 requested a review from bubunyo August 1, 2026 10:45
bubunyo
bubunyo previously approved these changes Aug 1, 2026
- Declare the repository root as the sole pnpm workspace package so Cloudflare Workers Builds can install dependencies with pnpm 10.11.1.
- Cache Astro's fingerprinted assets for one year with immutable browser semantics while leaving HTML on Cloudflare's default revalidation policy.
- Refresh the static meetup snapshot every day at 06:17 UTC through the existing GitHub Pages and Cloudflare workflows.

Verification: clean frozen installs with pnpm 10.11.1 and 10.24.0; production build loaded 9 live meetups and generated 11 pages; generated dist/_headers matched the source rule; Wrangler 4.115.0 deployment dry run passed; workflow schedules and git diff checks passed.
@Elvis020
Elvis020 force-pushed the feature/cloudflare-build-cache branch from b2fc92f to a33a3fc Compare August 1, 2026 12:20
@Elvis020
Elvis020 merged commit 985569d into main Aug 1, 2026
4 checks passed
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