From aee77099c7b9094c1a441b06d8d7a2df31cd9fb9 Mon Sep 17 00:00:00 2001 From: Wolmin Date: Mon, 20 Nov 2023 13:39:57 +0100 Subject: [PATCH] Add an env option to yarn build --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e8edfa9598..071b2cb80f 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "scripts": { "dev": "next dev", "dev:preset": "./tools/scripts/dev.preset.sh", - "build": "next build", + "build": "NODE_OPTIONS=--max-old-space-size=6144 next build", "build:docker": "docker build --build-arg GIT_COMMIT_SHA=$(git rev-parse --short HEAD) --build-arg GIT_TAG=$(git describe --tags --abbrev=0) -t blockscout-frontend:local ./", "start": "next start", "start:docker:local": "docker run -p 3000:3000 --env-file .env.local blockscout-frontend:local",