From 38df9f80cd632c4a9ada4092f1817d4aebfe0a7c Mon Sep 17 00:00:00 2001 From: mcastim-del Date: Mon, 27 Apr 2026 12:09:46 -0300 Subject: [PATCH] Update runWithProvider.js --- runWithProvider.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 +}