diff options
| author | Hyteq <DerpsDer.es@gmail.com> | 2025-07-20 10:48:40 +0300 |
|---|---|---|
| committer | Hyteq <DerpsDer.es@gmail.com> | 2025-07-20 10:48:40 +0300 |
| commit | eab8ec3ba81b86fdd4ade920d999c28fb34785b1 (patch) | |
| tree | 619fc6930f50fa36d6f1f94ee81fb8bf6d4bedef /packages/db/drizzle.config.ts | |
| parent | d040ca53cb4029c9c58bd7e6b6dfd1eed2694b31 (diff) | |
| download | opencut-eab8ec3ba81b86fdd4ade920d999c28fb34785b1.tar.gz | |
format, cleanup, deps
Diffstat (limited to 'packages/db/drizzle.config.ts')
| -rw-r--r-- | packages/db/drizzle.config.ts | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/packages/db/drizzle.config.ts b/packages/db/drizzle.config.ts index d661c455..b5ed9f4c 100644 --- a/packages/db/drizzle.config.ts +++ b/packages/db/drizzle.config.ts @@ -6,20 +6,20 @@ const { NODE_ENV, DATABASE_URL } = keys(); // Load the right env file based on environment if (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: DATABASE_URL, - }, - out: "./migrations", - strict: NODE_ENV === "production", + schema: "./src/schema.ts", + dialect: "postgresql", + migrations: { + table: "drizzle_migrations", + }, + dbCredentials: { + url: DATABASE_URL, + }, + out: "./migrations", + strict: NODE_ENV === "production", } satisfies Config; |
