source: drizzle.config.ts@ 8ee4553

main
Last change on this file since 8ee4553 was 8ee4553, checked in by Bati <no-reply@…>, 7 months ago

scaffold Vike app with Bati

  • Property mode set to 100644
File size: 408 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: "sqlite",
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.