Skip to content

Conversation

@Biki-dev
Copy link
Collaborator

@Biki-dev Biki-dev commented Dec 8, 2025

Summary

This PR adds a detailed, beginner-friendly deployment guide for running the project on Cloudflare Workers with R2-backed Incremental Static Regeneration (ISR). It includes step-by-step instructions for creating the R2 bucket, configuring open-next.config.ts, and the required wrangler.jsonc changes, plus troubleshooting tips for Windows users.

What I changed

  • Added/updated Cloudflare Workers deployment doc (docs/Cloudflare_Workers_Deploy.md or README section)
  • Included open-next.config.ts examples for enabling R2
  • Provided wrangler.jsonc example with r2_buckets binding
  • Clarified .dev.vars usage and .env.local guidance
  • Listed common errors and fixes (R2 binding, compatibility_date, resvg.wasm Windows issue)

How to test

  1. Ensure your Cloudflare account has R2 enabled and a payment method.
  2. Create an R2 bucket named next-inc-cache in Cloudflare.
  3. Update open-next.config.ts and wrangler.jsonc per the new docs.
  4. Run:
    npm install
    npm run deploy
    

Closes #146

@vercel
Copy link

vercel bot commented Dec 8, 2025

@Biki-dev is attempting to deploy a commit to the dayuanjiang's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Biki-dev
Copy link
Collaborator Author

Biki-dev commented Dec 8, 2025

@DayuanJiang pls review

@DayuanJiang
Copy link
Owner

Thanks again! I’ll review it shortly.

One small suggestion: since the added doc is quite long, it would be nicer as a separate file (easier to read and maintain).

Out of curiosity — have you tried deploying this change on Cloudflare yourself yet?

@Biki-dev
Copy link
Collaborator Author

Biki-dev commented Dec 8, 2025

Out of curiosity — have you tried deploying this change on Cloudflare yourself yet?

Yes i did

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.

[Feature] Add Cloudflare Worker as deployment option

2 participants