From 7488a9605ec83d635430371e87746609ce9bcdd3 Mon Sep 17 00:00:00 2001 From: Alexandru Serban <41323656+serban-alexandru@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:31:10 +0200 Subject: [PATCH] Allow underscores in PG_DATABASE_URL (#3599) We are working on a Twenty template for Easypanel.io. We need Twenty to allow underscores in order to be compatible with the generated Postgres database service Easypanel creates. --- .../src/integrations/environment/environment.validation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-server/src/integrations/environment/environment.validation.ts b/packages/twenty-server/src/integrations/environment/environment.validation.ts index ea29dbe42a..837a2975f2 100644 --- a/packages/twenty-server/src/integrations/environment/environment.validation.ts +++ b/packages/twenty-server/src/integrations/environment/environment.validation.ts @@ -64,7 +64,7 @@ export class EnvironmentVariables { PORT: number; // Database - @IsUrl({ protocols: ['postgres'], require_tld: false }) + @IsUrl({ protocols: ['postgres'], require_tld: false, allow_underscores: true }) PG_DATABASE_URL: string; // Frontend URL