Out of memory error with 5mb React app

I’m getting this out of memory error when trying to deploy a tiny React app. I’ve tried removing almost everything I can think of that could be causing this error (react-scroll and images I was importing). Anyone have any idea what this could be caused by?

This is the original version of the code I tried to deploy: GitHub - romanmendez/facultaspartners: Landing page for consulting company Facultas Partners

And this is the scaled down version, where I removed react-scroll and almost everything in the assets folder and the associated imports:

2023-11-02T09:07:39Z app[784e107a42d918] mad [info][   29.403140] Out of memory: Killed process 322 (node) total-vm:1112592kB, anon-rss:132916kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:2716kB oom_score_adj:0

Try adding the following to your fly.toml:

swap_size_mb = 1024

If speed becomes an issue, try increasing real memory. More information can be found here: Scaling · Fly Docs

that worked, thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.