mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #960] Apply sourcemaps by default during prerender in production build #205
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @github-actions[bot] on GitHub (Apr 29, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/960
Next.js Change
Next.js now applies sourcemaps by default during prerender in
next build. Previously this was gated behind an experimental config option (experimental.applySourceMapsor similar) which has now been removed.Commit:
59c73aePR: #93280
What Changed
packages/next/src/server/config-shared.ts: option type updated.packages/next/src/server/config.ts: 8 lines removed — likely the gating logic that previously toggled sourcemap application based on an experimental flag.docs/01-app/02-guides/memory-usage.mdx,docs/01-app/03-api-reference/06-cli/next.mdx).next.config.jsfiles (root-suspense-dynamic,server-source-maps/edge), implying the flag is no longer needed to opt in.The behavior is now: during
next buildprerender, server stack traces are rewritten through sourcemaps by default, producing more useful error output if a build-time render throws.Impact on vinext
vinext runs prerender via the App Router RSC build pipeline, with its own production server (
cloudflare/worker-entry.ts) and prod build flow (createBuilder+buildApp). Two concerns:experimental.applySourceMaps(or whichever exact key was removed) from their config. vinext should not warn or break on that key's absence, and should not require an opt-in to get the now-default behavior.Suggested Action
config.ts; check the PR for the key) and ensure vinext's config ingestion silently accepts/ignores both the present and absent forms.vp build/createBuilderflow + the App Router RSC build) for whether it applies sourcemaps to server-side stack traces. If not, add it as the default.