Showing
2 changed files
with
12 additions
and
10 deletions
| @@ -6,17 +6,18 @@ | @@ -6,17 +6,18 @@ | ||
| 6 | "private": true, | 6 | "private": true, |
| 7 | "license": "UNLICENSED", | 7 | "license": "UNLICENSED", |
| 8 | "scripts": { | 8 | "scripts": { |
| 9 | - "build:prod": "STAGE=prod nest build", | ||
| 10 | - "build:dev": "STAGE=dev nest build", | 9 | + "build:prod": "NODE_ENV=prod nest build", |
| 10 | + "build:dev": "NODE_ENV=dev nest build", | ||
| 11 | "build:local": "STAGE=local nest build", | 11 | "build:local": "STAGE=local nest build", |
| 12 | "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"libs/**/*.ts\"", | 12 | "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"libs/**/*.ts\"", |
| 13 | - "start": "STAGE=prod nest start", | ||
| 14 | - "start:dev": "STAGE=dev nest start --watch", | ||
| 15 | - "start:dev:debug": "STAGE=dev nest start --debug --watch", | ||
| 16 | - "start:local": "STAGE=local nest start --watch", | ||
| 17 | - "start:local:debug": "STAGE=local nest start --debug --watch", | ||
| 18 | - "start:prod": "STAGE=prod nest start --watch", | ||
| 19 | - "start:prod:debug": "STAGE=prod nest start --debug --watch", | 13 | + "start": "STAGE=dev nest start", |
| 14 | + "start:test": "NODE_ENV=dev nest start", | ||
| 15 | + "start:dev": "NODE_ENV=dev nest start", | ||
| 16 | + "start:dev:debug": "NODE_ENV=dev nest start --debug --watch", | ||
| 17 | + "start:local": "NODE_ENV=local nest start --watch", | ||
| 18 | + "start:local:debug": "NODE_ENV=local nest start --debug --watch", | ||
| 19 | + "start:prod": "NODE_ENV=prod nest start --watch", | ||
| 20 | + "start:prod:debug": "NODE_ENV=prod nest start --debug --watch", | ||
| 20 | "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", | 21 | "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", |
| 21 | "test": "jest", | 22 | "test": "jest", |
| 22 | "test:watch": "jest --watch", | 23 | "test:watch": "jest --watch", |
| @@ -18,7 +18,8 @@ import { ThrottlerModule } from '@nestjs/throttler'; | @@ -18,7 +18,8 @@ import { ThrottlerModule } from '@nestjs/throttler'; | ||
| 18 | AuthModule, | 18 | AuthModule, |
| 19 | ConfigModule.forRoot({ | 19 | ConfigModule.forRoot({ |
| 20 | isGlobal: true, | 20 | isGlobal: true, |
| 21 | - envFilePath: [`${process.cwd()}/environment/.env.${process.env.STAGE}`], | 21 | + envFilePath: [`${process.cwd()}/environment/.env.${process.env.NODE_ENV}`], |
| 22 | + // envFilePath: [`../../../environment/.env.dev`], | ||
| 22 | }), | 23 | }), |
| 23 | ThrottlerModule.forRoot([ | 24 | ThrottlerModule.forRoot([ |
| 24 | { | 25 | { |
Please
register
or
login
to post a comment