Javascript heap out of memory during build

Hi! im trying to deploy my strapi to my VPS. Previously i had version 4.15.x and it was working after adding some resources to swap to my RAM. Now i updated Strapi to v 4.25.2 and i cannot build that because of not enough RAM (i think so?). How i can handle that? Add more swap or maybe there is better way to do it? :confused:

This topic has been created from a Discord post (1258159648406765668) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

How much ram do u have? Strapi recommends a minimum of 2GB