fix: use env var for db url

This commit is contained in:
2025-01-10 13:41:12 +01:00
parent d9349e08e0
commit ca8b53c08e

View File

@@ -2,7 +2,7 @@ import * as schema from './schema'
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
const client = postgres('postgresql://postgres:postgres@db:5432/db');
const client = postgres(process.env.DATABASE_URL!);
export const db = drizzle(client, { schema });