Merge branch 'dev'
This commit is contained in:
commit
90b0890263
21 changed files with 636 additions and 93 deletions
|
|
@ -6,10 +6,13 @@ import { dirname } from "path";
|
|||
import * as schema from "./db/schema.js";
|
||||
|
||||
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_LOCAL"] ?? process.env["DATABASE_URL"]!,
|
||||
{ schema },
|
||||
);
|
||||
|
||||
export * from "./models/termModel.js";
|
||||
export * from "./models/lobbyModel.js";
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
"include": [
|
||||
"src",
|
||||
"vitest.config.ts",
|
||||
"drizzle.config.ts",
|
||||
"../../data-pipeline/archive/packages-db-src-old-seeding-scripts/data"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue