summaryrefslogtreecommitdiff
path: root/apps/web/drizzle.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/drizzle.config.ts')
-rw-r--r--apps/web/drizzle.config.ts24
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/web/drizzle.config.ts b/apps/web/drizzle.config.ts
index 2d53d6b9..be2a59fc 100644
--- a/apps/web/drizzle.config.ts
+++ b/apps/web/drizzle.config.ts
@@ -4,20 +4,20 @@ import { webEnv } from "@opencut/env/web";
// Load the right env file based on environment
if (webEnv.NODE_ENV === "production") {
- dotenv.config({ path: ".env.production" });
+ dotenv.config({ path: ".env.production" });
} else {
- dotenv.config({ path: ".env.local" });
+ 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",
+ schema: "./src/schema.ts",
+ dialect: "postgresql",
+ migrations: {
+ table: "drizzle_migrations",
+ },
+ dbCredentials: {
+ url: webEnv.DATABASE_URL,
+ },
+ out: "./migrations",
+ strict: webEnv.NODE_ENV === "production",
} satisfies Config;