diff --git a/runWithProvider.js b/runWithProvider.js index b4f0dabb1..02c42a36b 100644 --- a/runWithProvider.js +++ b/runWithProvider.js @@ -2,7 +2,9 @@ const dotenv = require('dotenv'); const { execSync } = require('child_process'); const { existsSync } = require('fs'); -dotenv.config(); +if (process.env.NODE_ENV !== 'production') { + dotenv.config(); +} const { DATABASE_PROVIDER } = process.env; const databaseProviderDefault = DATABASE_PROVIDER ?? 'postgresql'; @@ -49,4 +51,4 @@ try { } catch (error) { console.error(`Error executing command: ${command}`); process.exit(1); -} \ No newline at end of file +}