summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-07-16 15:34:55 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-16 15:34:55 +0200
commit700366f61e3f4ed4bb59bc3a87f8adf2b036c818 (patch)
treeeaf392ef12558a35dbdd6628488849f187b546ed /apps
parent9530058b97d386b24725b5c18fac32cb73a0cc34 (diff)
downloadopencut-700366f61e3f4ed4bb59bc3a87f8adf2b036c818.tar.gz
fix issue
Diffstat (limited to 'apps')
-rw-r--r--apps/web/drizzle.config.ts7
1 files 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;