Files
trackevery-day/drizzle.config.ts
Felix Schulze b02f5e6364
All checks were successful
Lint / Lint and Check (push) Successful in 51s
linter fixes, env fixes
2025-07-15 23:15:32 +02:00

18 lines
420 B
TypeScript

import { defineConfig } from 'drizzle-kit';
import dotenv from 'dotenv';
dotenv.config({ path: ['.env.local', '.env'] });
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',
});