Skip to content

Commit

Permalink
preserve default indicator options
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi committed Feb 15, 2025
1 parent 9ee6e3a commit 8e3d476
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/next/src/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1098,9 +1098,6 @@ export const defaultConfig: NextConfig = {
compress: true,
images: imageConfigDefault,
devIndicators: {
// TODO(jiwon): Change to false once we remove the old overlay and this flag.
appIsrStatus: process.env.__NEXT_EXPERIMENTAL_NEW_DEV_OVERLAY !== 'true',
buildActivity: process.env.__NEXT_EXPERIMENTAL_NEW_DEV_OVERLAY !== 'true',
buildActivityPosition: 'bottom-right',
},
onDemandEntries: {
Expand Down
7 changes: 7 additions & 0 deletions packages/next/src/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,13 @@ function assignDefaults(
if (process.env.__NEXT_EXPERIMENTAL_NEW_DEV_OVERLAY === 'false') {
result.experimental.newDevOverlay = false
}
if (result.experimental.newDevOverlay !== true) {
// Preserve the default indicator options for old overlay.
result.devIndicators = {
appIsrStatus: result.devIndicators?.appIsrStatus ?? true,
buildActivity: result.devIndicators?.buildActivity ?? true,
}
}

result.experimental.optimizePackageImports = [
...new Set([
Expand Down

0 comments on commit 8e3d476

Please # to comment.