mirror of
https://github.com/fergalmoran/kidarr-server.git
synced 2025-12-22 09:17:51 +00:00
16 lines
347 B
TypeScript
16 lines
347 B
TypeScript
import type { Config } from 'drizzle-kit';
|
|
import { env } from '@/env';
|
|
|
|
if (!env.DATABASE_URL) {
|
|
throw new Error('DATABASE_URL is missing');
|
|
}
|
|
export default {
|
|
// schema: './src/db',
|
|
schema: './src/server/db/schema.ts',
|
|
out: './drizzle',
|
|
driver: 'pg',
|
|
dbCredentials: {
|
|
connectionString: env.DATABASE_URL,
|
|
},
|
|
} satisfies Config;
|