16 lines
381 B
TypeScript
16 lines
381 B
TypeScript
import "dotenv/config";
|
|
import { defineConfig } from "drizzle-kit";
|
|
|
|
if (!process.env.DATABASE_URL) {
|
|
throw new Error("DATABASE_URL is not set. Copy .env.example to .env first.");
|
|
}
|
|
|
|
export default defineConfig({
|
|
schema: "./src/db/schema.ts",
|
|
out: "./drizzle",
|
|
dialect: "postgresql",
|
|
dbCredentials: { url: process.env.DATABASE_URL },
|
|
strict: true,
|
|
verbose: true,
|
|
});
|