Legger med env

This commit is contained in:
Håkon Størdal 2025-09-03 00:35:47 +02:00
parent b2fb1f3e72
commit 193b0363e5

View file

@ -1,9 +1,9 @@
import { DATABASE_URL } from '$env/static/private';
import { env } from '$env/dynamic/private';
import { Pool } from 'pg';
// Create a connection pool
const pool = new Pool({
connectionString: DATABASE_URL,
connectionString: env.DATABASE_URL,
ssl: false
});