Skip to content

Commit 2904177

Browse files
committed
fix: disable dotenv debug in production
1 parent f4fe134 commit 2904177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Load the .env file
22
import dotenv from 'dotenv';
3-
dotenv.config({ path: '.env', debug: true });
3+
dotenv.config({ path: '.env', debug: (NODE_ENV === 'development') });
44

55
// Imports for the server
66
import express from 'express';

0 commit comments

Comments
 (0)