notshop-bundle/drizzle.config.ts

15 lines
322 B
TypeScript
Raw Permalink Normal View History

2026-04-26 16:36:13 +00:00
import { defineConfig } from "drizzle-kit";
if (!process.env.DATABASE_URL) {
throw new Error("DATABASE_URL environment variable is required");
}
export default defineConfig({
out: "./migrations",
schema: "./shared/schema.ts",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL,
},
});