From 1ccacf6bb5db579cf6f343d9de57bce92d296f5f Mon Sep 17 00:00:00 2001 From: Kha Nguyen Date: Thu, 24 Jul 2025 17:00:49 -0500 Subject: merge main --- apps/web/drizzle.config.ts | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'apps/web/drizzle.config.ts') diff --git a/apps/web/drizzle.config.ts b/apps/web/drizzle.config.ts index 6b7a1605..a0602a74 100644 --- a/apps/web/drizzle.config.ts +++ b/apps/web/drizzle.config.ts @@ -1,19 +1,19 @@ -import type { Config } from "drizzle-kit"; -import * as dotenv from "dotenv"; - -// Load the right env file based on environment -if (process.env.NODE_ENV === "production") { - dotenv.config({ path: ".env.production" }); -} else { - dotenv.config({ path: ".env.local" }); -} - -export default { - schema: "../../packages/db/src/schema.ts", - dialect: "postgresql", - dbCredentials: { - url: process.env.DATABASE_URL!, - }, - out: "./migrations", - strict: process.env.NODE_ENV === "production", -} satisfies Config; +import type { Config } from "drizzle-kit"; +import * as dotenv from "dotenv"; + +// Load the right env file based on environment +if (process.env.NODE_ENV === "production") { + dotenv.config({ path: ".env.production" }); +} else { + dotenv.config({ path: ".env.local" }); +} + +export default { + schema: "../../packages/db/src/schema.ts", + dialect: "postgresql", + dbCredentials: { + url: process.env.DATABASE_URL!, + }, + out: "./migrations", + strict: process.env.NODE_ENV === "production", +} satisfies Config; -- cgit v1.3.1