From ab2b8aadee81882bc6a1e1171fb87794333cb650 Mon Sep 17 00:00:00 2001 From: Guillaume Lagorce Date: Tue, 5 Nov 2024 16:26:05 +0100 Subject: [PATCH] tech: limit max-old-size used by node while seeding db --- api/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/package.json b/api/package.json index 683f0231fff..71b66a72dd2 100644 --- a/api/package.json +++ b/api/package.json @@ -131,7 +131,7 @@ "db:migrate": "knex --knexfile db/knexfile.js migrate:latest && node scripts/database/pg-boss-migration.js", "db:rollback:latest": "knex --knexfile db/knexfile.js migrate:down", "db:prepare": "npm run db:delete && npm run db:create && npm run db:migrate", - "db:seed": "knex --knexfile db/knexfile.js seed:run", + "db:seed": "NODE_OPTIONS=\"--max-old-space-size=380\" knex --knexfile db/knexfile.js seed:run", "db:reload": "npm run db:empty && npm run db:seed", "db:reset": "npm run db:prepare && npm run db:seed", "doc:api:prescription": "node scripts/generate-api-documentation.js src/prescription > src/prescription/API.md",