We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f966fc commit dc5bf50Copy full SHA for dc5bf50
1 file changed
packages/next/src/next-devtools/dev-overlay/dev-overlay.tsx
@@ -35,7 +35,10 @@ export function DevOverlay({
35
36
const isBuildError = state.buildError !== null
37
38
- if (isBuildError !== isPrevBuildError) {
+ if (
39
+ process.env.__NEXT_DEVTOOL_NEW_PANEL_UI &&
40
+ isBuildError !== isPrevBuildError
41
+ ) {
42
// If the build error is set, enable the devtools panel as the error overlay mode,
43
// and the rest actions (close, minimize, fullscreen) can be handled by the user.
44
if (isBuildError) {
0 commit comments