mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 08:21:39 -06:00
14 lines
333 B
TypeScript
14 lines
333 B
TypeScript
import type { Config } from 'drizzle-kit';
|
|
import * as dotenv from 'dotenv';
|
|
|
|
dotenv.config();
|
|
|
|
export default {
|
|
schema: './src/db/schema',
|
|
out: './src/db/migrations',
|
|
dialect: 'postgresql',
|
|
dbCredentials: {
|
|
url: process.env.DATABASE_URL ?? 'postgres://projectx:projectx@postgres:5432/projectx',
|
|
},
|
|
} satisfies Config;
|