Nuxt 3 Deployment issue Build script returned non-zero exit code: 137 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Hi ,outside of optimsing your build.

Instead of NODE_OPTIONS as an environment variable, can you try setting it directly in your netlify.toml configuration file. Can you try adding:

[build]
  environment = { NODE_OPTIONS="--max-old-space-size=4096" }