diff --git a/govtool/frontend/Dockerfile b/govtool/frontend/Dockerfile index a9b01bad9..7c3eb3740 100644 --- a/govtool/frontend/Dockerfile +++ b/govtool/frontend/Dockerfile @@ -13,6 +13,8 @@ ARG VITE_PDF_API_URL ARG VITE_IPFS_GATEWAY ARG VITE_IPFS_PROJECT_ID +ENV NODE_OPTIONS="--max-old-space-size=4096" + # Ensure all required build arguments are set RUN \ : "${VITE_APP_ENV:?Build argument VITE_APP_ENV is not set}" && \ diff --git a/govtool/frontend/Dockerfile.qovery b/govtool/frontend/Dockerfile.qovery index 092754cf2..0f871462f 100644 --- a/govtool/frontend/Dockerfile.qovery +++ b/govtool/frontend/Dockerfile.qovery @@ -15,6 +15,8 @@ ARG VITE_IPFS_PROJECT_ID WORKDIR /src +ENV NODE_OPTIONS="--max-old-space-size=4096" + # Set npm configuration settings using environment variables RUN npm config set @intersect.mbo:registry "https://registry.npmjs.org/" --location=global RUN npm config set //registry.npmjs.org/:_authToken ${NPMRC_TOKEN} --location=global