Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
475 B
TypeScript
19 lines
475 B
TypeScript
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
import dotenv from 'dotenv';
|
|
import { defineConfig } from 'drizzle-kit';
|
|
|
|
const _dir = path.dirname(fileURLToPath(import.meta.url));
|
|
dotenv.config({ path: path.resolve(_dir, '../../.env') });
|
|
|
|
export default defineConfig({
|
|
schema: './src/schema/index.ts',
|
|
out: './migrations',
|
|
dialect: 'postgresql',
|
|
dbCredentials: {
|
|
url: process.env.DATABASE_URL!,
|
|
},
|
|
strict: true,
|
|
verbose: true,
|
|
});
|