diff --git a/index.js b/index.js index 78ac7eb0..5d95b52f 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ import serveStatic from './middleware/static.js' import vary from './middleware/vary.js' // Load environment variables -loadEnvFile() +if (!process.env.NODE_ENV) loadEnvFile() // Handle uncaught errors process.on(`uncaughtException`, handleUncaughtException)