Skip to content

Commit dbe11ee

Browse files
committed
fix test
1 parent 65a1b26 commit dbe11ee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/next/src/lib/turbopack-warning.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,16 @@ export async function validateTurboNextConfig({
164164
// configuration. Otherwise the user explicitly picked turbopack and thus we expect that
165165
// they have configured it correctly.
166166
if (process.env.TURBOPACK === 'auto' && hasWebpackConfig && !hasTurboConfig) {
167-
// If we defaulted to Turbopack, we want to fail the build.
167+
// If we defaulted to Turbopack, we want to fail the build to avoid surprising developers upgrading.
168+
// This can be removed in a future release.
168169
Log.error(
169170
`Webpack is configured while Turbopack is not. This may be a mistake.`
170171
)
171172
Log.error(
172-
`To configure Turbopack, see:\n https://nextjs.org/docs/app/api-reference/next-config-js/turbopack`
173+
`To configure Turbopack, see https://nextjs.org/docs/app/api-reference/next-config-js/turbopack`
173174
)
174175
Log.error(
175-
`TIP: Silence this ${isDev ? 'warning' : 'error'} by passing the --turbopack or --webpack flag explicitly.`
176+
`TIP: Silence this by passing the --turbopack or --webpack flag explicitly.`
176177
)
177178

178179
process.exit(1)

0 commit comments

Comments
 (0)