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". 
This commit is contained in:
@ -695,7 +695,7 @@ export class EnvironmentVariables {
|
|||||||
})
|
})
|
||||||
@IsDefined()
|
@IsDefined()
|
||||||
@IsUrl({
|
@IsUrl({
|
||||||
protocols: ['postgres'],
|
protocols: ['postgres', 'postgresql'],
|
||||||
require_tld: false,
|
require_tld: false,
|
||||||
allow_underscores: true,
|
allow_underscores: true,
|
||||||
require_host: false,
|
require_host: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user