8 lines
203 B
JavaScript
8 lines
203 B
JavaScript
const dotenv = require('dotenv')
|
|
const { parse } = require('pg-connection-string')
|
|
|
|
dotenv.config({ path: '.env.local' })
|
|
|
|
const options = parse(process.env.DATABASE_URL || '')
|
|
|
|
module.exports = options
|