Build failed on Cloudflare Pages.

Hello everyone. I have a cloudflare page which watches the github repository and deploy the changes once the PR is created.
I got heap out of memory issue once I've added some addtional features to my code.
To handle this problem, I've increased memory usage by using the following command.
NODE_OPTIONS="--max-old-space-size=7680"
The problem is, I get memory exceed error from Cloudflare build after adding the above command.
Is it possible to increase the memory limit of Cloudflare pages?
Or can I move the building step out of the Cloudflare pages?
Was this page helpful?