fix: docker build

This commit is contained in:
2025-12-12 09:26:54 -05:00
parent d7dc911db4
commit 28c982ee37
2 changed files with 29 additions and 4 deletions

View File

@@ -1,10 +1,12 @@
import { defineConfig } from 'drizzle-kit';
import * as dotenv from 'dotenv';
if (process.env.NODE_ENV === "production") {
dotenv.config({ path: '.env.production' });
} else {
dotenv.config({ path: '.env.local' });
if (!process.env.DATABASE_URL) {
if (process.env.NODE_ENV === "production") {
dotenv.config({ path: '.env.production' });
} else {
dotenv.config({ path: '.env.local' });
}
}
export default defineConfig({