main
|
Last change
on this file since e729b88 was 66bf4fd, checked in by Tome <gjorgievtome@…>, 7 months ago |
|
setup config
|
-
Property mode
set to
100644
|
|
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.