Skip to content

Add Cloudflare Worker deployment setup - #1

Merged
drasko merged 2 commits into
mainfrom
add-cloudflare-worker-deployment
Sep 15, 2026
Merged

drasko merged 2 commits into
mainfrom
add-cloudflare-worker-deployment

Conversation

@ianmuchyri

Copy link
Copy Markdown
Contributor

Summary

  • add a Cloudflare Worker entrypoint for serving docs images, diagrams, and screenshots from the shared R2 bucket
  • configure Wrangler static assets with run_worker_first routes and the IMAGES_BUCKET binding
  • add Cloudflare _headers/_redirects plus maintainer image publishing docs and script
  • wire MDX image URLs through the new /docs/synth R2-backed paths

Validation

  • pnpm types:check
  • pnpm run build
  • pnpm exec wrangler deploy --dry-run
  • pnpm exec biome check package.json source.config.ts wrangler.jsonc lib/remark-doc-images.ts workers/image-proxy.ts workers/r2-proxy.ts scripts/publish-image.mjs

Note: full pnpm run lint still reports pre-existing unrelated issues in app/[[...slug]]/page.tsx, mdx-components.tsx, lib/base-path.ts, and lib/metadata.ts, plus a Biome schema version warning.

@ianmuchyri
ianmuchyri marked this pull request as draft September 15, 2026 14:56
@ianmuchyri
ianmuchyri marked this pull request as ready for review September 15, 2026 15:04
@drasko
drasko merged commit 5f068d5 into main Sep 15, 2026
1 check passed
@ianmuchyri
ianmuchyri deleted the add-cloudflare-worker-deployment branch September 15, 2026 16:01
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.

3 participants