mirror of
https://github.com/LogicLabs-OU/OpenArchiver.git
synced 2026-04-06 00:31:57 +02:00
20 lines
433 B
TypeScript
20 lines
433 B
TypeScript
import { defineConfig } from 'drizzle-kit';
|
|
import { config } from 'dotenv';
|
|
|
|
config();
|
|
|
|
if (!process.env.DATABASE_URL) {
|
|
throw new Error('DATABASE_URL is not set in the .env file');
|
|
}
|
|
|
|
export default defineConfig({
|
|
schema: './src/database/schema.ts',
|
|
out: './src/database/migrations',
|
|
dialect: 'postgresql',
|
|
dbCredentials: {
|
|
url: process.env.DATABASE_URL,
|
|
},
|
|
verbose: true,
|
|
strict: true,
|
|
});
|