fix: update allowed protocols for URL validation in environment variables (#11104)

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)
This commit is contained in:
Mitesh Gupta
2025-03-22 19:02:50 +05:30
committed by GitHub
parent ccf60284cf
commit aba55a5a34

View File

@ -695,7 +695,7 @@ export class EnvironmentVariables {
})
@IsDefined()
@IsUrl({
protocols: ['postgres'],
protocols: ['postgres', 'postgresql'],
require_tld: false,
allow_underscores: true,
require_host: false,