From fca8eef2a1aac6d78273ed18f4e240b565f2ab43 Mon Sep 17 00:00:00 2001 From: Henri Remonen Date: Mon, 10 Jun 2024 09:04:01 +0300 Subject: [PATCH] feat: add max old space size node argument to prevent JS heap memory issues --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5c202b1..8452ade 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "start": "docker compose up", "start:dev": "NODE_ENV=development nodemon src/index.js", - "start:prod": "node src/index.js", + "start:prod": "node --max-old-space-size=4096 src/index.js", "test": "vitest", "lint": "eslint src/**/*", "sync": "./scripts/sync_code.sh ../palaute"