Skip to content

Commit 1c10f98

Browse files
committed
[dev-tools] add feature flag for new panel ui
1 parent a6f74c9 commit 1c10f98

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ export function getDefineEnv({
289289
: {}),
290290
'process.env.__NEXT_DEVTOOL_SEGMENT_EXPLORER':
291291
config.experimental.devtoolSegmentExplorer ?? false,
292+
'process.env.__NEXT_DEVTOOL_NEW_PANEL_UI':
293+
config.experimental.devtoolNewPanelUI ?? false,
292294
'process.env.__NEXT_TURBOPACK_PERSISTENT_CACHE':
293295
config.experimental.turbopackPersistentCaching ?? false,
294296
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ export const configSchema: zod.ZodType<NextConfig> = z.lazy(() =>
499499
.optional(),
500500
globalNotFound: z.boolean().optional(),
501501
devtoolSegmentExplorer: z.boolean().optional(),
502+
devtoolNewPanelUI: z.boolean().optional(),
502503
})
503504
.optional(),
504505
exportPathMap: z

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,11 @@ export interface ExperimentalConfig {
694694
* Enable segment viewer for the app directory in dev tool.
695695
*/
696696
devtoolSegmentExplorer?: boolean
697+
698+
/**
699+
* Enable new panel UI for the dev tool.
700+
*/
701+
devtoolNewPanelUI?: boolean
697702
}
698703

699704
export type ExportPathMap = {

0 commit comments

Comments
 (0)