Skip to content

Commit 16184be

Browse files
committed
fix: fix load swagger
1 parent 096181d commit 16184be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async function bootstrap() {
7777

7878
enableCorsByEnv(app, configService);
7979

80-
const ENV = process.env['ENVIRONMENT'];
80+
const ENV = configService.ENVIRONMENT;
8181
if (ENV === ENVIRONMENT.STAGE || ENV === ENVIRONMENT.LOCAL) {
8282
const swaggerDoc = load('src/swagger.yaml');
8383
app.use(

0 commit comments

Comments
 (0)