Skip to content

chore(deploy): add Cloudflare Workers deployment via OpenNext - #56

Merged
moshiur01 merged 2 commits into
mainfrom
feat/cloudflare-workers-deploy
Nov 18, 2026
Merged

moshiur01 merged 2 commits into
mainfrom
feat/cloudflare-workers-deploy

Conversation

@moshiur01

Copy link
Copy Markdown
Contributor

Summary

  • Add @opennextjs/cloudflare and wrangler to apps/docs, with wrangler.jsonc (Worker tween-ui-docs, nodejs_compat) and open-next.config.ts.
  • Add preview, deploy and cf-typegen scripts. Use pnpm run deploy, because pnpm deploy is a built-in pnpm command.
  • Allow the workerd install script in pnpm-workspace.yaml.
  • Ignore .open-next, .wrangler and .dev.vars in git and prettier, and untrack two .open-next build files that were committed by mistake.

Deploying

Set this up with Cloudflare Workers Builds connected to this repo, which builds on Linux. A local opennextjs-cloudflare build on Windows fails with EPERM on symlinks unless Developer Mode is on.

Testing

  • tsc --noEmit passes.
  • next build passes inside opennextjs-cloudflare build. Bundling was not verified locally because of the Windows symlink limit.

🤖 Generated with Claude Code

moshiur01 and others added 2 commits November 19, 2026 00:17
Add @opennextjs/cloudflare and wrangler to the docs app with a
wrangler.jsonc and open-next.config.ts, plus preview/deploy/cf-typegen
scripts. Allow the workerd install script, ignore Cloudflare build
output, and untrack the .open-next build files committed by mistake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@moshiur01
moshiur01 merged commit b7c45c9 into main Nov 18, 2026
1 of 2 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.

1 participant