diff options
| author | gantiro <gantiro396@gmail.com> | 2025-07-16 20:53:00 +0700 |
|---|---|---|
| committer | gantiro <gantiro396@gmail.com> | 2025-07-16 20:53:00 +0700 |
| commit | 955f6331f258143daa62cb6e004c6df089c55c64 (patch) | |
| tree | f1e4ed03cbfb35408ae5282dfe35371e535e5eb8 /apps/web/drizzle.config.ts | |
| parent | 2974fd89a942f4e3173642b165f228e2af604ae7 (diff) | |
| parent | 3371a6889634f326063351295faca9a56c566706 (diff) | |
| download | opencut-955f6331f258143daa62cb6e004c6df089c55c64.tar.gz | |
Merge branch 'main' into feature/optimize-timeline-ruler
Diffstat (limited to 'apps/web/drizzle.config.ts')
| -rw-r--r-- | apps/web/drizzle.config.ts | 7 |
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;
|
