Skip to content

Commit

Permalink
FIX: Only load .env file on localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhieb committed Jun 6, 2024
1 parent 74027e0 commit d43973a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d43973a

Please sign in to comment.