Skip to content

A Next.js 16 project with an Edge Runtime entry builds - #119

Merged
paales merged 1 commit into
mainfrom
nextjs-edge
Dec 2, 2026
Merged

paales merged 1 commit into
mainfrom
nextjs-edge

Conversation

@paales

@paales paales commented Dec 2, 2026

Copy link
Copy Markdown
Member

Written by 🤖:

  • Next.js 16 with Turbopack bundles the cacheHandler also into the Edge Runtime, such as middleware.ts. The Node.js calls of the cache store stopped the build (gap R77 of the model).
  • inject-next-config.mjs writes deployyy-cache-handler.mjs without a Node.js API. In the Node.js runtime it imports the cache store, deployyy-cache-store.mjs (cache-handler.mjs), outside the bundle. In the Edge Runtime it caches nothing.
  • The runtime image copies deployyy-cache-store.mjs next to server.js.
  • Checked with Next.js 16.5.0, middleware.ts and an edge route: the build passes, / and the edge route answer 200, and the store writes its pages to CACHE_DIR. With the old handler the build stopped at process.pid.

@paales
paales merged commit a7270bd into main Dec 2, 2026
1 check 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