Repository navigation
Support Cloudflare deployment - #175
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://feat-cloudflare-deployment-typescript.sparkling-queen-af32.workers.dev (commit cc10340)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
|
This branch was successfully deployed
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.



Description
This PR adds support for deploying cur8d to Cloudflare Workers via OpenNext and Wrangler, providing full Next.js App Router (SSR, Server Components, Streaming, and Route Handlers) parity along with edge static asset hosting.
Summary of Changes
open-next.config.tsdefining OpenNext Cloudflare adapter configuration.wrangler.jsonconfiguring the application Worker (.open-next/worker.js),nodejs_compatruntime compatibility flags, and static assets directory (.open-next/assets).docs/wrangler.jsonconfiguring documentation hosting using native Workers Static Assets (docs/out).@opennextjs/cloudflareandwranglertodevDependenciesinpackage.json.workerdtoallowBuildsinpnpm-workspace.yaml..open-next/and.wrangler/to.gitignoreandeslint.config.mjsignores.deploy:cloudflaretask in.mise.tomlrunningopennextjs-cloudflare buildand deploying viawrangler deploy."build:worker","deploy:cloudflare", and"deploy:cloudflare:docs"scripts inpackage.json.scripts/init.tsto customizewrangler.json,docs/wrangler.json, andopen-next.config.ts..github/workflows/deploy.ymlwithcloudflareprovider option anddeploy-cloudflarejob.jdx/mise-actiontov5acrossdeploy.yml,check.yml, anddocs.yml.docs/content/deployment/cloudflare.mdxdetailing Cloudflare Workers architecture, OpenNext adapter, configuration, GitHub secrets, and local deployment withmise.docs/content/deployment/_meta.jsanddocs/content/deployment/index.mdx.docs/content/adr/adr-008-vercel.mdx,environment-variables.mdx,project-structure.mdx, andworkflows.mdx.../../../wrangler.json,../../../.firebaserc, etc.).README.mdandAGENTS.md.Verification
mise run verify(ESLint, TypeScript typecheck, Vitest coverage: 17/17 test files passed, 58/58 tests passed, >94% coverage).mise run docs:build(Nextra documentation build passed, 35/35 pages generated).pnpm run build:worker(opennextjs-cloudflare buildsucceeded, bundle generated).wrangler deploy --dry-runandwrangler deploy --dry-run --env previewsucceeded without warnings for both root application and docs.