Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion packages/next/src/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,14 @@ export const defaultConfig: NextConfig = {
staticGenerationMinPagesPerWorker: 25,
dynamicIO: false,
inlineCss: false,
newDevOverlay: false,
// TODO: remove once we've made new UI default
get newDevOverlay() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the default value, it should be false. turning on the flag should be done in load config.
The config will also be serialized in output manifest, I'd prefer we keep the default config flag and simple

return (
// Enable reactOwnerStack when newDevOverlay is enabled to have
// better call stack output in the new UI.
Object.getOwnPropertyDescriptor(this, 'reactOwnerStack')?.value ?? false
)
},
streamingMetadata: false,
htmlLimitedBots: undefined,
},
Expand Down