update build command with bigger max_old_space_size (#9882)

This commit is contained in:
Sylvia Moss 2020-09-03 11:48:54 +02:00 committed by GitHub
parent d1a61cac33
commit 62e1663846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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 = "/*"

View File

@ -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",