mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
fix: process.env.TURBOPACK maybe undefined (#84885)
This commit is contained in:
@@ -4,7 +4,7 @@ module.exports = function withRspack(config) {
|
||||
// we have already been called. This can happen when using build workers.
|
||||
return config
|
||||
}
|
||||
if (process.env.TURBOPACK === 'auto') {
|
||||
if (!process.env.TURBOPACK || process.env.TURBOPACK === 'auto') {
|
||||
delete process.env.TURBOPACK
|
||||
process.env.RSPACK_CONFIG_VALIDATE = 'loose-silent'
|
||||
process.env.NEXT_RSPACK = 'true'
|
||||
|
||||
Reference in New Issue
Block a user