fix: use env var for db url
This commit is contained in:
@@ -2,7 +2,7 @@ import * as schema from './schema'
|
|||||||
import { drizzle } from 'drizzle-orm/postgres-js';
|
import { drizzle } from 'drizzle-orm/postgres-js';
|
||||||
import postgres from 'postgres';
|
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 });
|
export const db = drizzle(client, { schema });
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user