Update database url to use .env

master
TZGyn 2 years ago
parent 2d741fccda
commit 263a08319b
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -11,7 +11,8 @@ import {
} from 'drizzle-orm/pg-core' } from 'drizzle-orm/pg-core'
const client = postgres( 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) export const db = drizzle(client)

Loading…
Cancel
Save