Skip to content

Commit ecd1abe

Browse files
[devtools] add feature flag for new panel ui (#80251)
Closes NEXT-4517 --------- Co-authored-by: Sebastian Sebbie Silbermann <[email protected]>
1 parent c652fc3 commit ecd1abe

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
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

293295
// The devtools need to know whether or not to show an option to clear the
294296
// bundler cache. This option may be removed later once Turbopack's

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

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

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,9 +696,14 @@ export interface ExperimentalConfig {
696696
globalNotFound?: boolean
697697

698698
/**
699-
* Enable segment viewer for the app directory in dev tool.
699+
* Enable segment viewer for the app directory in Next.js DevTools.
700700
*/
701701
devtoolSegmentExplorer?: boolean
702+
703+
/**
704+
* Enable new panel UI for the Next.js DevTools.
705+
*/
706+
devtoolNewPanelUI?: boolean
702707
}
703708

704709
export type ExportPathMap = {

0 commit comments

Comments
 (0)