fix: remove hardcoded database URLs and use environment variables

This commit is contained in:
2026-03-31 18:28:17 -07:00
parent a9fc5c312a
commit 4e112c92ae
6 changed files with 39 additions and 22 deletions
+5 -1
View File
@@ -9,8 +9,12 @@ const { execSync } = require('child_process');
const fs = require('fs');
const path = require('path');
// Load .env file if it exists
// Load .env.development file first (if it exists), then .env file
const envDevPath = path.resolve(__dirname, '..', '.env.development');
const envPath = path.resolve(__dirname, '..', '.env');
if (fs.existsSync(envDevPath)) {
require('dotenv').config({ path: envDevPath });
}
if (fs.existsSync(envPath)) {
require('dotenv').config({ path: envPath });
}