fosrl.pangolin/drizzle.pg.config.ts

13 lines
327 B
TypeScript
Raw Permalink Normal View History

2024-09-27 21:39:03 -04:00
import { defineConfig } from "drizzle-kit";
import path from "path";
2024-09-27 21:39:03 -04:00
export default defineConfig({
2025-06-04 12:02:07 -04:00
dialect: "postgresql",
schema: path.join("server", "db", "pg", "schema.ts"),
2024-09-29 21:09:35 -04:00
out: path.join("server", "migrations"),
2024-09-27 21:39:03 -04:00
verbose: true,
dbCredentials: {
2025-06-04 12:02:07 -04:00
url: process.env.DATABASE_URL as string
}
2024-09-27 21:39:03 -04:00
});