From b7c140f75fb3e7993cf5d644155f1e49b2400f5f Mon Sep 17 00:00:00 2001 From: alexeh Date: Mon, 11 Sep 2023 08:13:07 +0300 Subject: [PATCH] add production env to start:prod script --- api/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/package.json b/api/package.json index 3f7081e30..eb9c006b4 100644 --- a/api/package.json +++ b/api/package.json @@ -10,7 +10,7 @@ "start": "yarn typeorm schema:sync && nest start", "start:watch": "yarn typeorm schema:sync && nest start --watch", "start:debug": "nest start --debug --watch", - "start:prod": "yarn typeorm schema:sync && NODE_PATH=dist/src node dist/src/main", + "start:prod": "NODE_ENV=production yarn typeorm schema:sync && NODE_PATH=dist/src node dist/src/main", "typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js -d src/data-source.ts", "build": "rm -rf dist && tsc", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",