I understand that you are getting an error when trying to deploy ReactJS into Cloud Run. May I know how you set the NODE_OPTIONS=“–max-old-space-size=” flag? Also, you can try to gradually increase the memory size of it. This error usually occurs when the NodeJS process runs out of memory.
Regarding if there is a way to do this on Cloud Run. What you can do is to try to gradually increase the memory allocated to instances of the container from 512MB to 4GB. But, please take note also that increasing the memory will increase the pricing of your Cloud Run service.
Hi @ronnelg
I set it as NODE_OPTIONS="–max-old-space-size= into trigger Yaml file and into app service yaml file , didn’t work
so I found the solution to set it into package.json into build command as “–max-old-space-size=” directly without NODE_OPTIONS , after investigation I found that NODE_OPTIONS=–max-old-space-size= not working into linux