mirror of
https://github.com/outline/outline.git
synced 2026-01-06 02:59:54 -06:00
fix: Unable to use DATABASE_HOST env (#9977)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user