Skip to content

Commit c3f54ec

Browse files
authored
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)
1 parent 68b5141 commit c3f54ec

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/next/src/server/lib/start-server.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,7 @@ export async function startServer({
187187
env: {
188188
FORCE_COLOR: '1',
189189
...((initialEnv || process.env) as typeof process.env),
190-
// we don't pass down NODE_OPTIONS as it can
191-
// extra memory usage
192-
NODE_OPTIONS: getNodeOptionsWithoutInspect()
193-
.replace(/--max-old-space-size=[\d]{1,}/, '')
194-
.trim(),
190+
NODE_OPTIONS: getNodeOptionsWithoutInspect().trim(),
195191
},
196192
},
197193
exposedMethods: ['initialize'],

0 commit comments

Comments
 (0)