Unverified Commit 1da5efa1 authored by Cong-Cong Pan's avatar Cong-Cong Pan Committed by GitHub

fix: process.env.TURBOPACK maybe undefined (#84885)

parent de739305
...@@ -4,7 +4,7 @@ module.exports = function withRspack(config) { ...@@ -4,7 +4,7 @@ module.exports = function withRspack(config) {
// we have already been called. This can happen when using build workers. // we have already been called. This can happen when using build workers.
return config return config
} }
if (process.env.TURBOPACK === 'auto') { if (!process.env.TURBOPACK || process.env.TURBOPACK === 'auto') {
delete process.env.TURBOPACK delete process.env.TURBOPACK
process.env.RSPACK_CONFIG_VALIDATE = 'loose-silent' process.env.RSPACK_CONFIG_VALIDATE = 'loose-silent'
process.env.NEXT_RSPACK = 'true' process.env.NEXT_RSPACK = 'true'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment