mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-04 12:45:17 +02:00
15 lines
No EOL
345 B
TypeScript
15 lines
No EOL
345 B
TypeScript
import type { Config } from 'drizzle-kit';
|
|
import * as dotenv from 'dotenv';
|
|
dotenv.config();
|
|
const { DATABASE_URL } = process.env;
|
|
if (!DATABASE_URL) {
|
|
throw new Error('No url');
|
|
}
|
|
export default {
|
|
schema: './src/lib/db/schema.ts',
|
|
out: './migrations',
|
|
driver: 'pg',
|
|
dbCredentials: {
|
|
connectionString: DATABASE_URL
|
|
}
|
|
} satisfies Config; |