copilot/create-zip-file
| 1 | import { defineConfig } from "drizzle-kit"; |
| 2 | |
| 3 | if (!process.env.DATABASE_URL) { |
| 4 | throw new Error("DATABASE_URL, ensure the database is provisioned"); |
| 5 | } |
| 6 | |
| 7 | export default defineConfig({ |
| 8 | out: "./migrations", |
| 9 | schema: "./shared/schema.ts", |
| 10 | dialect: "postgresql", |
| 11 | dbCredentials: { |
| 12 | url: process.env.DATABASE_URL, |
| 13 | }, |
| 14 | }); |