Update database url to use .env

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

@ -11,6 +11,7 @@ import {
} from 'drizzle-orm/pg-core' } from 'drizzle-orm/pg-core'
const client = postgres( const client = postgres(
process.env.DATABASE_URL ??
'postgres://postgres:password@127.0.0.1:5432/next-dashboard' 'postgres://postgres:password@127.0.0.1:5432/next-dashboard'
) )

Loading…
Cancel
Save