diff --git a/drizzle.config.ts b/drizzle.config.ts index 7502c55..433f699 100644 --- a/drizzle.config.ts +++ b/drizzle.config.ts @@ -1,7 +1,11 @@ import { defineConfig } from 'drizzle-kit'; import * as dotenv from 'dotenv'; -dotenv.config({ path: '.env.local' }); +if (process.env.NODE_ENV === "production") { + dotenv.config({ path: '.env.production' }); +} else { + dotenv.config({ path: '.env.local' }); +} export default defineConfig({ dialect: 'postgresql', @@ -12,4 +16,4 @@ export default defineConfig({ }, verbose: true, strict: true, -}); \ No newline at end of file +});