Files
trackevery-day/drizzle.config.ts
Felix Schulze 5bb861d881
All checks were successful
Lint / Lint and Check (push) Successful in 41s
env config
2025-11-15 17:23:10 +01:00

17 lines
369 B
TypeScript

import { defineConfig } from 'drizzle-kit';
import '@/lib/env-config';
const DATABASE_URL = process.env.POSTGRES_URL;
if (!DATABASE_URL) {
throw new Error('POSTGRES_URL environment variable is required');
}
export default defineConfig({
schema: './lib/db/schema.ts',
dialect: 'postgresql',
dbCredentials: {
url: DATABASE_URL,
},
out: './drizzle',
});