fix: correct dotenv path in packages/db/src/index.ts for compiled dist output
This commit is contained in:
parent
e1c4fb5744
commit
6ca6fc4e09
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ import { dirname } from "path";
|
||||||
import * as schema from "./db/schema.js";
|
import * as schema from "./db/schema.js";
|
||||||
|
|
||||||
config({
|
config({
|
||||||
path: resolve(dirname(fileURLToPath(import.meta.url)), "../../../.env"),
|
path: resolve(dirname(fileURLToPath(import.meta.url)), "../../../../.env"),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const db = drizzle(process.env["DATABASE_URL"]!, { schema });
|
export const db = drizzle(process.env["DATABASE_URL"]!, { schema });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue