From aba55a5a34f6a04ca8eb67424c7a3a91137abb31 Mon Sep 17 00:00:00 2001 From: Mitesh Gupta Date: Sat, 22 Mar 2025 19:02:50 +0530 Subject: [PATCH] fix: update allowed protocols for URL validation in environment variables (#11104) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using postgres cloud databse connection string with protocol 'postgresql', it throws error "ERROR PG_DATABASE_URL must be a URL address". ![Screenshot 2025-03-22 at 12 24 25 AM](https://github.com/user-attachments/assets/a5fdcb4e-686c-481a-9f4d-48a65aa44a30) --- .../engine/core-modules/environment/environment-variables.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-server/src/engine/core-modules/environment/environment-variables.ts b/packages/twenty-server/src/engine/core-modules/environment/environment-variables.ts index 9c2d5fe9c..93f52b848 100644 --- a/packages/twenty-server/src/engine/core-modules/environment/environment-variables.ts +++ b/packages/twenty-server/src/engine/core-modules/environment/environment-variables.ts @@ -695,7 +695,7 @@ export class EnvironmentVariables { }) @IsDefined() @IsUrl({ - protocols: ['postgres'], + protocols: ['postgres', 'postgresql'], require_tld: false, allow_underscores: true, require_host: false,