Files
esports/drizzle.config.ts

13 lines
354 B
TypeScript

import { defineConfig } from 'drizzle-kit';
const databaseUrl = process.env.DATABASE_URL || process.env.DB_URL;
if (!databaseUrl) throw new Error('DATABASE_URL or DB_URL is not set');
export default defineConfig({
schema: './src/lib/server/db/schema.ts',
dialect: 'postgresql',
dbCredentials: { url: databaseUrl },
verbose: true,
strict: true
});