Skip to content

Commit dc5bf50

Browse files
committed
should feature flag it
1 parent 4f966fc commit dc5bf50

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/next/src/next-devtools/dev-overlay/dev-overlay.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ export function DevOverlay({
3535

3636
const isBuildError = state.buildError !== null
3737

38-
if (isBuildError !== isPrevBuildError) {
38+
if (
39+
process.env.__NEXT_DEVTOOL_NEW_PANEL_UI &&
40+
isBuildError !== isPrevBuildError
41+
) {
3942
// If the build error is set, enable the devtools panel as the error overlay mode,
4043
// and the rest actions (close, minimize, fullscreen) can be handled by the user.
4144
if (isBuildError) {

0 commit comments

Comments
 (0)