Skip to content

Commit ec4e690

Browse files
committed
app-next-turbopack is prod not dev
1 parent 9a9abc9 commit ec4e690

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/next/src/client/app-next-turbopack.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// TODO-APP: hydration warning
2-
3-
import { renderAppDevOverlay } from 'next/dist/compiled/next-devtools'
41
import { appBootstrap } from './app-bootstrap'
52
import {
63
getComponentStack,
@@ -19,6 +16,10 @@ appBootstrap(() => {
1916
try {
2017
hydrate(instrumentationHooks)
2118
} finally {
22-
renderAppDevOverlay(getComponentStack, getOwnerStack, isRecoverableError)
19+
if (process.env.NODE_ENV !== 'production') {
20+
const { renderAppDevOverlay } =
21+
require('next/dist/compiled/next-devtools') as typeof import('next/dist/compiled/next-devtools')
22+
renderAppDevOverlay(getComponentStack, getOwnerStack, isRecoverableError)
23+
}
2324
}
2425
})

0 commit comments

Comments
 (0)