source: drizzle.config.ts@ 546a194

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

setup config

  • Property mode set to 100644
File size: 412 bytes
RevLine 
[8ee4553]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({
[66bf4fd]9 dialect: "postgresql",
[8ee4553]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.