source:
drizzle.config.ts
| Last change on this file was 66bf4fd, checked in by , 7 months ago | |
|---|---|
|
|
| File size: 412 bytes | |
| Line | |
|---|---|
| 1 | import "dotenv/config"; |
| 2 | import { defineConfig } from "drizzle-kit"; |
| 3 | |
| 4 | if (!process.env.DATABASE_URL) { |
| 5 | throw new Error("Missing DATABASE_URL in .env file"); |
| 6 | } |
| 7 | |
| 8 | export default defineConfig({ |
| 9 | dialect: "postgresql", |
| 10 | schema: "./database/drizzle/schema/*", |
| 11 | out: "./database/migrations", |
| 12 | |
| 13 | dbCredentials: { |
| 14 | // biome-ignore lint/style/noNonNullAssertion: exists |
| 15 | url: process.env.DATABASE_URL!, |
| 16 | }, |
| 17 | }); |
Note:
See TracBrowser
for help on using the repository browser.
