Skip to content

The open-source CapCut alternative

fix issue

Maze Winther700366f61e3f
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;