Bug report
On Windows, the build script uses POSIX-style environment variable assignment:
"build": "NODE_OPTIONS=\"--max-old-space-size=1024\" next build"
When run from a Windows shell, the command fails before Next.js starts because NODE_OPTIONS is treated as an executable name.
Reproduction
From a fresh checkout on Windows:
Observed output:
'NODE_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
Expected behavior
The build script should start Next.js consistently across Windows and POSIX shells while preserving the 1024 MB old-space limit.
Bug report
On Windows, the build script uses POSIX-style environment variable assignment:
When run from a Windows shell, the command fails before Next.js starts because
NODE_OPTIONSis treated as an executable name.Reproduction
From a fresh checkout on Windows:
Observed output:
Expected behavior
The build script should start Next.js consistently across Windows and POSIX shells while preserving the 1024 MB old-space limit.