remix-run / blues-stack

The Remix Stack for deploying to Fly with PostgreSQL, authentication, testing, linting, formatting, etc.
https://remix.run/stacks
MIT License
943 stars 231 forks source link

OOM error in deploy requires NODE_OPTIONS space size to be increased/defined #242

Open larswww opened 3 months ago

larswww commented 3 months ago

Have you experienced this bug with the latest version of the template?

Yes

Steps to Reproduce

I had the following issue: https://community.fly.io/t/blues-stack-template-js-heap-error-oom-on-github-actions-deply/20087 And found the solution here: https://community.fly.io/t/pci-fatal-no-config-space-access-function-found/19594/10

Expected Behavior

Deploy works when you follow tutorial

Actual Behavior

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory in Actions -> Deploy

larswww commented 3 months ago

So either modifying the template to include NODE_OPTIONS= "--max-old-space-size=4096" in fly.toml by default, or fixing the root cause.