Add local dev setup, fix BRouter Dockerfile, archive change (#12)
This commit is contained in:
parent
2d02ae3f9e
commit
52b2baaf58
14 changed files with 329 additions and 9 deletions
|
|
@ -1,9 +1,17 @@
|
|||
import { defineConfig } from "drizzle-kit";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
schema: ["./src/schema/planner.ts", "./src/schema/journal.ts"],
|
||||
out: "./migrations",
|
||||
schema: [
|
||||
path.resolve(__dirname, "src/schema/planner.ts"),
|
||||
path.resolve(__dirname, "src/schema/journal.ts"),
|
||||
],
|
||||
out: path.resolve(__dirname, "migrations"),
|
||||
dialect: "postgresql",
|
||||
schemaFilter: ["planner", "journal"],
|
||||
dbCredentials: {
|
||||
url: process.env.DATABASE_URL ?? "postgres://trails:trails@localhost:5432/trails",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue