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.
This commit is contained in:
Alexandru Serban 2024-01-24 17:31:10 +02:00 committed by GitHub
parent ccbf773fd4
commit 7488a9605e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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