Skip to content

The open alternative to Salesforce, designed for AI.

Allow underscores in PG_DATABASE_URL (#3599)

Alexandru Serban7488a9605ec8
diff --git a/packages/twenty-server/src/integrations/environment/environment.validation.ts b/packages/twenty-server/src/integrations/environment/environment.validation.ts
index ea29dbe42a3..837a2975f2e 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