diff --git a/lib/schema.ts b/lib/schema.ts index 324b3bb..edbe9d0 100644 --- a/lib/schema.ts +++ b/lib/schema.ts @@ -11,7 +11,8 @@ import { } from 'drizzle-orm/pg-core' const client = postgres( - 'postgres://postgres:password@127.0.0.1:5432/next-dashboard' + process.env.DATABASE_URL ?? + 'postgres://postgres:password@127.0.0.1:5432/next-dashboard' ) export const db = drizzle(client)