Skip to content

Commit

Permalink
test: only delay next.patch() in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lubieowoce committed Jun 10, 2024
1 parent 3e340a1 commit b6be06d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/next-modes/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ export class NextInstance {
// This is a temporary workaround for turbopack starting watching too late.
// So we delay file changes by 500ms to give it some time
// to connect the WebSocket and start watching.
if (process.env.TURBOPACK) {
if (isNextDev && process.env.TURBOPACK) {
require('console').log('fs dev delay before', filename)
await waitFor(500)
}
Expand Down

0 comments on commit b6be06d

Please sign in to comment.