Unverified Commit c3f54ec4 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Remove old-space-size filtering from dev server (#49727)

We shouldn't filter this from the router worker as this is where the dev
server runs and should be able to allocate more memory.

x-ref: [slack
thread](https://vercel.slack.com/archives/C04MEB9L9RQ/p1683823794069839?thread_ts=1683756338.246099&cid=C04MEB9L9RQ)
parent 68b51415
...@@ -187,11 +187,7 @@ export async function startServer({ ...@@ -187,11 +187,7 @@ export async function startServer({
env: { env: {
FORCE_COLOR: '1', FORCE_COLOR: '1',
...((initialEnv || process.env) as typeof process.env), ...((initialEnv || process.env) as typeof process.env),
// we don't pass down NODE_OPTIONS as it can NODE_OPTIONS: getNodeOptionsWithoutInspect().trim(),
// extra memory usage
NODE_OPTIONS: getNodeOptionsWithoutInspect()
.replace(/--max-old-space-size=[\d]{1,}/, '')
.trim(),
}, },
}, },
exposedMethods: ['initialize'], exposedMethods: ['initialize'],
......
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