From 62e1663846f33bd170b1bd116316f7c6c2df815c Mon Sep 17 00:00:00 2001 From: Sylvia Moss Date: Thu, 3 Sep 2020 11:48:54 +0200 Subject: [PATCH] update build command with bigger max_old_space_size (#9882) --- website/netlify.toml | 2 +- website/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/netlify.toml b/website/netlify.toml index 9864996d4..b2f42f3e3 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -10,7 +10,7 @@ environment = { HASHI_ENV = "production", NODE_ENV = "production" } [context.deploy-preview] - environment = { HASHI_ENV = "staging", NODE_ENV = "production", NODE_OPTIONS = "--max_old_space_size=9999" } + environment = { HASHI_ENV = "staging", NODE_ENV = "production" } [[headers]] for = "/*" diff --git a/website/package.json b/website/package.json index 6684fb927..b7aa658bd 100644 --- a/website/package.json +++ b/website/package.json @@ -37,9 +37,9 @@ }, "main": "index.js", "scripts": { - "build": "node --max-old-space-size=2048 ./node_modules/.bin/next build", + "build": "node --max-old-space-size=8192 ./node_modules/.bin/next build", "dynamic": "NODE_ENV=production next build && next start", - "export": "node --max-old-space-size=2048 ./node_modules/.bin/next export", + "export": "node --max-old-space-size=8192 ./node_modules/.bin/next export", "format": "next-hashicorp format", "generate:component": "next-hashicorp generate component", "generate:readme": "next-hashicorp markdown-blocks README.md",