mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #593] [MERGED] fix: throw errors when next config file loading fails #694
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#694
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/593
Author: @james-elicx
Created: 3/19/2026
Status: ✅ Merged
Merged: 3/19/2026
Merged by: @james-elicx
Base:
main← Head:james/throw-config-parse-error📝 Commits (2)
41e5258fix: throw errors when next config parse failsd6fe022add unit test📊 Changes
2 files changed (+31 additions, -4 deletions)
View changed files
📝
packages/vinext/src/config/next-config.ts(+5 -3)📝
tests/next-config.test.ts(+26 -1)📄 Description
failures loading a Next.js config (e.g. due to CJS require statements) should fail a build, otherwise it produces an output that disregards the user's configuration (e.g. pageExtensions), creating incorrect/invalid bundles and giving a confusing experience.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.