From 3aff344501a67b08527f3ba028a5c1a4d692e481 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 19 Aug 2025 08:29:53 -0400 Subject: [PATCH] fix: Unable to use DATABASE_HOST env (#9977) --- server/env.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/env.ts b/server/env.ts index 5293d8d7b8..d10e10c579 100644 --- a/server/env.ts +++ b/server/env.ts @@ -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.