summaryrefslogtreecommitdiff
path: root/apps/web/drizzle.config.ts
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-03-29 14:15:21 +0200
committerMaze Winther <mazewinther@gmail.com>2026-03-29 15:58:46 +0200
commit220ec757d42b54f498d031436e5b4b03931b165c (patch)
tree931a9b147c692b1fa5fcdc17ec568dea6bd437b2 /apps/web/drizzle.config.ts
parent585e28d49b853155c34a3eba03388722e2049cb7 (diff)
downloadopencut-220ec757d42b54f498d031436e5b4b03931b165c.tar.gz
refactor: move packages sub-folders into web app
Diffstat (limited to 'apps/web/drizzle.config.ts')
-rw-r--r--apps/web/drizzle.config.ts46
1 files changed, 23 insertions, 23 deletions
diff --git a/apps/web/drizzle.config.ts b/apps/web/drizzle.config.ts
index e3fd2d19..494fd35d 100644
--- a/apps/web/drizzle.config.ts
+++ b/apps/web/drizzle.config.ts
@@ -1,23 +1,23 @@
-import type { Config } from "drizzle-kit";
-import * as dotenv from "dotenv";
-import { webEnv } from "@opencut/env/web";
-
-// Load the right env file based on environment
-if (webEnv.NODE_ENV === "production") {
- dotenv.config({ path: ".env.production" });
-} else {
- dotenv.config({ path: ".env.local" });
-}
-
-export default {
- schema: "./src/schema.ts",
- dialect: "postgresql",
- migrations: {
- table: "drizzle_migrations",
- },
- dbCredentials: {
- url: webEnv.DATABASE_URL,
- },
- out: "./migrations",
- strict: webEnv.NODE_ENV === "production",
-} satisfies Config;
+import type { Config } from "drizzle-kit";
+import * as dotenv from "dotenv";
+import { webEnv } from "@/lib/env/web";
+
+// Load the right env file based on environment
+if (webEnv.NODE_ENV === "production") {
+ dotenv.config({ path: ".env.production" });
+} else {
+ dotenv.config({ path: ".env.local" });
+}
+
+export default {
+ schema: "./src/schema.ts",
+ dialect: "postgresql",
+ migrations: {
+ table: "drizzle_migrations",
+ },
+ dbCredentials: {
+ url: webEnv.DATABASE_URL,
+ },
+ out: "./migrations",
+ strict: webEnv.NODE_ENV === "production",
+} satisfies Config;