Skip to content

Maybe you can abstract... #71

@Bear-Coding

Description

@Bear-Coding

if (type === "production") {
if (!process.env.DATABASE_URL)
throw new Error("Environment variable DATABASE_URL must be set");
} else {
if (!process.env.HEROKU_POSTGRESQL_CYAN_URL)
throw new Error("Environment variable DATABASE_URL must be set");
}
if (type === "production") params = url.parse(process.env.DATABASE_URL);
else params = url.parse(process.env.HEROKU_POSTGRESQL_CYAN_URL);

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions