Build fails, Javascript heap out of memory

I am having the following output everytime I deploy the project via git action.
Project builds successfully on my device using the following command: npx @cloudflare/next-on-pages@1

I need to update the site. Is there anyone who can assist me with this?
Was this page helpful?