Skip to content

Fix Next.js version blocker; document Cloudflare Proxy/Workers incompatibility - #10

Merged
optymumss merged 1 commit into
cloudflare-deployfrom
claude/cloudflare-deploy-webhook-2rztcy
Jul 27, 2026
Merged

Fix Next.js version blocker; document Cloudflare Proxy/Workers incompatibility#10
optymumss merged 1 commit into
cloudflare-deployfrom
claude/cloudflare-deploy-webhook-2rztcy

Conversation

@optymumss

Copy link
Copy Markdown
Owner

Summary

  • Bump next / eslint-config-next from 16.2.10 to 16.2.12 — a real published patch release that satisfies @opennextjs/cloudflare's peer range (>=16.2.11), resolving the original deploy failure (Cannot find module '@opennextjs/cloudflare').
  • npm install, npx tsc --noEmit, and next build all pass cleanly on 16.2.12.
  • Running the actual Cloudflare build (opennextjs-cloudflare build) surfaces a second, deeper, currently-unresolved blocker: this Next.js fork's src/proxy.ts (renamed from middleware.ts) is Node.js-runtime-only, and @opennextjs/cloudflare (latest, 1.20.2) has no support for Node.js middleware yet. Confirmed this is a known ecosystem-wide gap via cloudflare/workers-sdk#13755 and active, unmerged work in opennextjs-cloudflare#1309 / #1275.
  • Documented both blockers in detail in CLOUDFLARE.md, including what would need to change to unblock (upstream Node middleware support, or a security-relevant refactor moving auth/session logic out of Proxy into per-route server checks).
  • Added .open-next/ and .wrangler/ to .gitignore (build artifacts produced while validating the above).

This branch still does not produce a deployable Cloudflare Workers build — that's expected, per the updated CLOUDFLARE.md. Vercel remains the live production deployment.

Test plan

  • npm install — no peer-dependency conflicts
  • npx tsc --noEmit — clean
  • npm run build (plain next build) — succeeds
  • npx opennextjs-cloudflare build — fails at the Node.js Proxy step (expected, documented)

Generated by Claude Code

Bump next/eslint-config-next 16.2.10 -> 16.2.12, a real published patch
release that satisfies @opennextjs/cloudflare's peer range, resolving the
original "Cannot find module '@opennextjs/cloudflare'" build failure.

Running the actual OpenNext Cloudflare build surfaces a deeper, unresolved
issue: this Next.js fork's Proxy (renamed from middleware.ts) is
Node.js-runtime-only, and @opennextjs/cloudflare doesn't support Node.js
middleware yet. Documented in CLOUDFLARE.md with links to the upstream
issue/PRs tracking this.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R3Q9i3afPL8DDDMmKnEpYW
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
hemoedge Ready Ready Preview, Comment Jul 27, 2026 8:57pm

@optymumss
optymumss marked this pull request as ready for review July 27, 2026 21:04
@optymumss
optymumss merged commit 4e8e774 into cloudflare-deploy Jul 27, 2026
4 checks passed
@optymumss
optymumss deleted the claude/cloudflare-deploy-webhook-2rztcy branch July 27, 2026 21:04
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