mirror of
https://github.com/outline/outline.git
synced 2026-12-02 17:52:07 +03:00
fix: Unable to use DATABASE_HOST env (#9977)
This commit is contained in:
1 parent
0f812d70c1
commit
3aff344501
1 file changed
+2
-2
+2
-2
@@ -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