Skip to content

Configure Cloudflare Workers deployment with OpenNext#15

Merged
github-actions[bot] merged 1 commit into
mainfrom
claude/init-build-environment-QLZA6
May 17, 2026
Merged

Configure Cloudflare Workers deployment with OpenNext#15
github-actions[bot] merged 1 commit into
mainfrom
claude/init-build-environment-QLZA6

Conversation

@vtempest

Copy link
Copy Markdown
Collaborator

Summary

This PR adds Cloudflare Workers deployment configuration to the project, enabling the Next.js application to be built and deployed as a Cloudflare Worker using OpenNext.

Key Changes

  • Added wrangler.jsonc: Cloudflare Workers configuration file specifying the worker name, compatibility settings, entry point (.open-next/worker.js), and static asset handling
  • Added open-next.config.ts: OpenNext configuration file for Cloudflare deployment using the @opennextjs/cloudflare adapter
  • Updated build script: Modified package.json build command to run both Next.js build and OpenNext Cloudflare build (next build && opennextjs-cloudflare build)
  • Added dependency: Installed @opennextjs/cloudflare v1.19.10 as a dev dependency
  • Updated Next.js config: Added turbopackUseSystemTlsCerts: true to experimental settings for proper TLS certificate handling in the build environment

Implementation Details

The configuration uses Node.js compatibility mode (nodejs_compat flag) to ensure Node.js APIs are available in the Cloudflare Worker environment. Static assets are served through Cloudflare's asset binding system, and the worker entry point is generated by OpenNext during the build process.

https://claude.ai/code/session_01NGazKnE99CMZKFvoPTFPnf

- Add @opennextjs/cloudflare to transform Next.js build for Workers
- Create wrangler.jsonc with worker entry-point and assets config
- Create open-next.config.ts required by opennextjs-cloudflare
- Update build script to run opennextjs-cloudflare build after next build
- Enable turbopackUseSystemTlsCerts to fix Google Fonts fetch in CI

https://claude.ai/code/session_01NGazKnE99CMZKFvoPTFPnf
@vercel

vercel Bot commented May 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rights-institute Building Building Preview, Comment May 17, 2026 2:18am

@github-actions
github-actions Bot merged commit 1a8e9c4 into main May 17, 2026
2 of 5 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.

2 participants