Skip to content

Commit 6721e2c

Browse files
limit memory usage for build
1 parent 54de4df commit 6721e2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
"start": "npm run dev",
1212
"start:cli": "npm run build:cli && node ./dist/cli/cli.js start",
1313
"start:astro": "astro dev",
14-
"build": "npm run build:cli && node ./dist/cli/cli.js build",
14+
"build": "npm run build:cli && node --max-old-space-size=4096 ./dist/cli/cli.js build",
1515
"build:astro": "astro check && astro build",
1616
"build:cli": "tsc --build ./cli/tsconfig.json",
1717
"build:cli:watch": "tsc --build --watch ./cli/tsconfig.json",
1818
"build:props": "npm run build:cli && node ./dist/cli/cli.js generate-props",
1919
"preview": "wrangler pages dev",
2020
"astro": "astro",
2121
"deploy": "wrangler pages deploy",
22+
"versions:upload": "wrangler versions upload",
2223
"prettier": "prettier --write ./src",
2324
"lint": "eslint . --cache --cache-strategy content",
2425
"test": "jest",

0 commit comments

Comments
 (0)