mirror of
https://github.com/khairul169/github-leaderboard.git
synced 2025-04-28 15:39:31 +07:00
15 lines
354 B
TypeScript
15 lines
354 B
TypeScript
import { defineConfig } from "drizzle-kit";
|
|
|
|
const DATABASE_PATH = process.env.DATABASE_PATH;
|
|
if (!DATABASE_PATH) {
|
|
throw new Error("DATABASE_PATH is not set");
|
|
}
|
|
|
|
export default defineConfig({
|
|
schema: "./server/models/index.ts",
|
|
out: "./server/db/migrations",
|
|
dialect: "postgresql",
|
|
dbCredentials: { url: DATABASE_PATH },
|
|
verbose: true,
|
|
});
|