fix: Unable to use DATABASE_HOST env (#9977)

This commit is contained in:
Tom Moor
2025-08-19 08:29:53 -04:00
committed by GitHub
parent 0f812d70c1
commit 3aff344501

View File

@@ -78,7 +78,7 @@ export class Environment {
/**
* The url of the database.
*/
@IsNotEmpty()
@IsOptional()
@IsUrl({
require_tld: false,
allow_underscores: true,
@@ -91,7 +91,7 @@ export class Environment {
"DATABASE_USER",
"DATABASE_PASSWORD",
])
public DATABASE_URL = environment.DATABASE_URL ?? "";
public DATABASE_URL = this.toOptionalString(environment.DATABASE_URL);
/**
* Database host for individual component configuration.