mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
We want to start dogfooding `workerThreads`, but we can only safely do it if you have a new enough node version. We don't have any sort of strong enforcement around node.js version in front (e.g. you could have a misconfigured nvm or fnm), so we need to check the node version first. - https://github.com/napi-rs/napi-rs/issues/2555#issuecomment-3645173223 - https://github.com/nodejs/node/pull/55877 - https://github.com/nodejs/node/pull/61400 - https://github.com/nodejs/node/pull/61661 Looks like this:  Related Node.js version bump for front: https://github.com/vercel/front/pull/65059
21 lines
402 B
JavaScript
21 lines
402 B
JavaScript
const runtimeStrategy = process.env.TEST_TURBOPACK_PLUGIN_RUNTIME_STRATEGY
|
|
|
|
module.exports = {
|
|
experimental: {
|
|
turbopackPluginRuntimeStrategy: runtimeStrategy,
|
|
},
|
|
compiler: {
|
|
defineServer: {
|
|
'process.env.__TEST_BUILD_PID': String(process.pid),
|
|
},
|
|
},
|
|
turbopack: {
|
|
rules: {
|
|
'*.pid': {
|
|
as: '*.js',
|
|
loaders: ['./pid-loader.js'],
|
|
},
|
|
},
|
|
},
|
|
}
|