Legger med env
This commit is contained in:
parent
b2fb1f3e72
commit
193b0363e5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue