Unverified Commit 9b0edbb7 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

[dev-overlay] remove the experiment config for overlay (#76356)

parent 940c1925
...@@ -448,7 +448,6 @@ export const configSchema: zod.ZodType<NextConfig> = z.lazy(() => ...@@ -448,7 +448,6 @@ export const configSchema: zod.ZodType<NextConfig> = z.lazy(() =>
typedEnv: z.boolean().optional(), typedEnv: z.boolean().optional(),
serverComponentsHmrCache: z.boolean().optional(), serverComponentsHmrCache: z.boolean().optional(),
authInterrupts: z.boolean().optional(), authInterrupts: z.boolean().optional(),
newDevOverlay: z.boolean().optional(),
streamingMetadata: z.boolean().optional(), streamingMetadata: z.boolean().optional(),
htmlLimitedBots: z.instanceof(RegExp).optional(), htmlLimitedBots: z.instanceof(RegExp).optional(),
useCache: z.boolean().optional(), useCache: z.boolean().optional(),
......
...@@ -587,11 +587,6 @@ export interface ExperimentalConfig { ...@@ -587,11 +587,6 @@ export interface ExperimentalConfig {
*/ */
authInterrupts?: boolean authInterrupts?: boolean
/**
* Enables the new dev overlay.
*/
newDevOverlay?: boolean
/** /**
* When enabled will cause async metadata calls to stream rather than block the render. * When enabled will cause async metadata calls to stream rather than block the render.
*/ */
...@@ -1263,7 +1258,6 @@ export const defaultConfig: NextConfig = { ...@@ -1263,7 +1258,6 @@ export const defaultConfig: NextConfig = {
staticGenerationMinPagesPerWorker: 25, staticGenerationMinPagesPerWorker: 25,
dynamicIO: false, dynamicIO: false,
inlineCss: false, inlineCss: false,
newDevOverlay: true,
streamingMetadata: false, streamingMetadata: false,
htmlLimitedBots: undefined, htmlLimitedBots: undefined,
useCache: undefined, useCache: undefined,
......
...@@ -957,23 +957,6 @@ function assignDefaults( ...@@ -957,23 +957,6 @@ function assignDefaults(
result.experimental = {} 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 = [ result.experimental.optimizePackageImports = [
...new Set([ ...new Set([
...userProvidedOptimizePackageImports, ...userProvidedOptimizePackageImports,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment