Skip to content

Commit 15fbf92

Browse files
authored
[devtools] Allow opting out of environment feature flags (#80897)
1 parent 43c094c commit 15fbf92

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/next/src/build/define-env.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ export function getDefineEnv({
107107
const isDynamicIOEnabled = !!config.experimental.dynamicIO
108108
const isUseCacheEnabled = !!config.experimental.useCache
109109

110-
const isDevToolPanelUIEnabled =
111-
!!process.env.__NEXT_DEVTOOL_NEW_PANEL_UI ||
112-
!!config.experimental.devtoolNewPanelUI
110+
const isDevToolPanelUIEnabled = Boolean(config.experimental.devtoolNewPanelUI)
113111

114112
const defineEnv: DefineEnv = {
115113
// internal field to identify the plugin config

packages/next/src/server/config-shared.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,7 @@ export const defaultConfig = {
13551355
static: process.env.NEXT_STATIC_CACHE_HANDLER_PATH,
13561356
},
13571357
cssChunking: true,
1358+
devtoolNewPanelUI: process.env.__NEXT_DEVTOOL_NEW_PANEL_UI === 'true',
13581359
multiZoneDraftMode: false,
13591360
appNavFailHandling: false,
13601361
prerenderEarlyExit: true,

0 commit comments

Comments
 (0)