docs: add comprehensive guide for Next.js 16 + Cloudflare (OpenNext) integration#368
Closed
lora-sys wants to merge 4 commits intoaymericzip:mainfrom
Closed
docs: add comprehensive guide for Next.js 16 + Cloudflare (OpenNext) integration#368lora-sys wants to merge 4 commits intoaymericzip:mainfrom
lora-sys wants to merge 4 commits intoaymericzip:mainfrom
Conversation
Contributor
Author
|
Hi, I see the CI failed with an error in @intlayer/chokidar related to @intlayer/vue-transformer. |
Owner
|
hey @lora-sys Thank you so much for this doc submission! However, I will probably not merge it. Here's why:
|
Contributor
Author
|
OK, thanks for the review! |
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.
📝 Summary
This PR introduces a detailed deployment guide for using Intlayer with Next.js 16 (App Router) on Cloudflare Workers via the OpenNext adapter. It addresses critical configurations required for Edge Runtime compatibility and React 19 hydration stability.
✨ Key Changes
New Documentation: Added
cloudflare-opennext.md(in both English and Chinese) covering:middleware.tsmatcher to reduce Edge Runtime overhead.IntlayerClientProviderwithThemeProviderfor React 19.wrangler.jsoncand build scripts to bypass mandatory R2 requirements.Website Integration: Updated
docData.content.tsandhome/index.mdto include the new section in the navigation tree.🚀 Reference Implementation
Successfully tested in a production-ready environment:
💡 Future Suggestions (RFC)
useIntlayertypes to reduce manual.valueaccess.npx intlayer scanto auto-generate content templates.Branch:
docs/cloudflare-opennext-guide