source: drizzle.config.ts@ 9c87509

main
Last change on this file since 9c87509 was 66bf4fd, checked in by Tome <gjorgievtome@…>, 7 months ago

setup config

  • Property mode set to 100644
File size: 412 bytes
Line 
1import "dotenv/config";
2import { defineConfig } from "drizzle-kit";
3
4if (!process.env.DATABASE_URL) {
5 throw new Error("Missing DATABASE_URL in .env file");
6}
7
8export 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.