Skip to content

Commit d27e822

Browse files
authored
Merge pull request #11313 from kodadot/ci--adjust-netlify-memory-deployment
2 parents 79c9056 + a796318 commit d27e822

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

netlify.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[build]
55
# This will be your default build command.
6-
command = "pnpm run generate"
6+
command = "pnpm run generate:netlify"
77
# This is the directory that you are publishing from.
88
publish = "dist"
99

@@ -16,7 +16,7 @@
1616
targetPort = 9090
1717

1818
[context.deploy-preview]
19-
command = 'export BASE_URL=$DEPLOY_PRIME_URL && env && pnpm run generate'
19+
command = 'export BASE_URL=$DEPLOY_PRIME_URL && env && pnpm run generate:netlify'
2020

2121
[context.production]
2222
command = 'export BASE_URL=$URL && env && pnpm run generate'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"start": "nuxi preview",
2929
"start:node": "PORT=9090 node .output/server/index.mjs",
3030
"generate": "nuxi build",
31+
"generate:netlify": "NODE_OPTIONS='--max-old-space-size=8192' nuxi build",
3132
"lint": "eslint .",
3233
"lint:quiet": "eslint . --quiet",
3334
"lint:fix": "eslint . --fix",

0 commit comments

Comments
 (0)