Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
9b0edbb7
Unverified
Commit
9b0edbb7
authored
Feb 22, 2025
by
Jiachi Liu
Committed by
GitHub
Feb 22, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev-overlay] remove the experiment config for overlay (#76356)
parent
940c1925
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
24 deletions
+0
-24
config-schema.ts
packages/next/src/server/config-schema.ts
+0
-1
config-shared.ts
packages/next/src/server/config-shared.ts
+0
-6
config.ts
packages/next/src/server/config.ts
+0
-17
No files found.
packages/next/src/server/config-schema.ts
View file @
9b0edbb7
...
...
@@ -448,7 +448,6 @@ export const configSchema: zod.ZodType<NextConfig> = z.lazy(() =>
typedEnv
:
z
.
boolean
().
optional
(),
serverComponentsHmrCache
:
z
.
boolean
().
optional
(),
authInterrupts
:
z
.
boolean
().
optional
(),
newDevOverlay
:
z
.
boolean
().
optional
(),
streamingMetadata
:
z
.
boolean
().
optional
(),
htmlLimitedBots
:
z
.
instanceof
(
RegExp
).
optional
(),
useCache
:
z
.
boolean
().
optional
(),
...
...
packages/next/src/server/config-shared.ts
View file @
9b0edbb7
...
...
@@ -587,11 +587,6 @@ export interface ExperimentalConfig {
*/
authInterrupts
?:
boolean
/**
* Enables the new dev overlay.
*/
newDevOverlay
?:
boolean
/**
* When enabled will cause async metadata calls to stream rather than block the render.
*/
...
...
@@ -1263,7 +1258,6 @@ export const defaultConfig: NextConfig = {
staticGenerationMinPagesPerWorker
:
25
,
dynamicIO
:
false
,
inlineCss
:
false
,
newDevOverlay
:
true
,
streamingMetadata
:
false
,
htmlLimitedBots
:
undefined
,
useCache
:
undefined
,
...
...
packages/next/src/server/config.ts
View file @
9b0edbb7
...
...
@@ -957,23 +957,6 @@ function assignDefaults(
result
.
experimental
=
{}
}
// Preserve the default indicator options for old overlay.
if
(
result
.
experimental
.
newDevOverlay
!==
true
)
{
// If the user didn't explicitly set `position` or `buildActivityPosition` option,
// the default is going to be "bottom-left". However, the default position for the
// old build activity indicator was "bottom-right" which becomes a breaking change.
// Therefore, set to "bottom-right" if the user didn't explicitly set the option.
if
(
!
hasWarnedBuildActivityPosition
)
{
result
.
devIndicators
=
{
...
result
.
devIndicators
,
position
:
userConfig
.
devIndicators
?.
position
&&
result
.
devIndicators
!==
false
?
result
.
devIndicators
?.
position
:
'bottom-right'
,
}
}
}
result
.
experimental
.
optimizePackageImports
=
[
...
new
Set
([
...
userProvidedOptimizePackageImports
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment