Next.js Discord

Discord Forum

Configuring Node.js settings upon `next start`

Unanswered
Philippine Crocodile posted this in #help-forum
Open in Discord
Philippine CrocodileOP
Is there a preferred method for passing Node.js flags/arguments upon starting the Next.js server?

Doing this seems to work locally, but causes issues in our cloud deployment:
node --max_old_space_size=4096 ./node_modules/next/dist/bin/next dev


I was thinking maybe there is a way to configure next.config.js to specify Node.js arguments?

0 Replies