update build command with bigger max_old_space_size (#9882)
This commit is contained in:
parent
d1a61cac33
commit
62e1663846
|
@ -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 = "/*"
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue