From 700366f61e3f4ed4bb59bc3a87f8adf2b036c818 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 16 Jul 2025 15:34:55 +0200 Subject: [PATCH] fix issue --- apps/web/drizzle.config.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/web/drizzle.config.ts b/apps/web/drizzle.config.ts index 87547bd0..6b7a1605 100644 --- a/apps/web/drizzle.config.ts +++ b/apps/web/drizzle.config.ts @@ -1,9 +1,8 @@ import type { Config } from "drizzle-kit"; import * as dotenv from "dotenv"; -import { env } from "@/env"; // Load the right env file based on environment -if (env.NODE_ENV === "production") { +if (process.env.NODE_ENV === "production") { dotenv.config({ path: ".env.production" }); } else { dotenv.config({ path: ".env.local" }); @@ -13,8 +12,8 @@ export default { schema: "../../packages/db/src/schema.ts", dialect: "postgresql", dbCredentials: { - url: env.DATABASE_URL, + url: process.env.DATABASE_URL!, }, out: "./migrations", - strict: env.NODE_ENV === "production", + strict: process.env.NODE_ENV === "production", } satisfies Config;