Files
bookorbit/server/drizzle.config.ts
T

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;