mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #973] [MERGED] fix: support enablePrerenderSourceMaps config with default true #992
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#992
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?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/973
Author: @Divkix
Created: 4/29/2026
Status: ✅ Merged
Merged: 5/1/2026
Merged by: @james-elicx
Base:
main← Head:fix/960-enable-prerender-sourcemaps📝 Commits (6)
331fda8fix: support enablePrerenderSourceMaps config with default true (#960)9e3806arefactor: address review comments for enablePrerenderSourceMaps (#960)21f401ffix(prerender): simplify getErrorMessageWithStack and add test coverage6785e20fix(prerender): address review feedback - update snapshot, add config comment48a5fcbfeat(config): add enablePrerenderSourceMaps config optione1e3087Merge origin/main — resolve conflicts in next-config.ts and test📊 Changes
9 files changed (+126 additions, -51 deletions)
View changed files
📝
packages/vinext/src/build/prerender.ts(+21 -3)📝
packages/vinext/src/check.ts(+4 -0)📝
packages/vinext/src/cli.ts(+7 -0)📝
packages/vinext/src/config/next-config.ts(+10 -0)📝
packages/vinext/src/deploy.ts(+4 -0)📝
tests/__snapshots__/entry-templates.test.ts.snap(+51 -48)➕
tests/fixtures/pages-basic/pages/error-throw.tsx(+4 -0)📝
tests/next-config.test.ts(+15 -0)📝
tests/prerender.test.ts(+10 -0)📄 Description
Fixes #960
Summary
Adds the
enablePrerenderSourceMapsconfig option matching Next.js behavior:true— prerender error stack traces resolve through sourcemaps to original source filesprocess.setSourceMapsEnabled(true)) is enabled before the prerender phase in bothcli.ts(build) anddeploy.ts(deploy)vinext checkoutputTest plan
tests/next-config.test.tsverifying defaulttrue, explicitfalse, and explicittruenext-config.test.tsandprerender.test.tstests continue to pass🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.