mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
9 lines
248 B
TypeScript
9 lines
248 B
TypeScript
import parseDbUrl from 'parse-database-url';
|
|
|
|
export const getDbConfig = (): object => {
|
|
const url =
|
|
process.env.TEST_DATABASE_URL ||
|
|
'postgres://unleash_user:passord@localhost:5432/unleash_test';
|
|
return parseDbUrl(url);
|
|
};
|