Unverified Commit bb8439bf authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

[misc]: remove unused render worker code (#76345)

This looks like leftover code from when we were running a multi-process
architecture.
parent 7dccec01
...@@ -1108,16 +1108,6 @@ export default async function loadConfig( ...@@ -1108,16 +1108,6 @@ export default async function loadConfig(
return JSON.parse(process.env.__NEXT_PRIVATE_STANDALONE_CONFIG) return JSON.parse(process.env.__NEXT_PRIVATE_STANDALONE_CONFIG)
} }
// For the render worker, we directly return the serialized config from the
// parent worker (router worker) to avoid loading it again.
// This is because loading the config might be expensive especiall when people
// have Webpack plugins added.
// Because of this change, unserializable fields like `.webpack` won't be
// existing here but the render worker shouldn't use these as well.
if (process.env.__NEXT_PRIVATE_RENDER_WORKER_CONFIG) {
return JSON.parse(process.env.__NEXT_PRIVATE_RENDER_WORKER_CONFIG)
}
const curLog = silent const curLog = silent
? { ? {
warn: () => {}, warn: () => {},
......
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