Enable port to be overridden (#1527)

Enable port to be overriden
This commit is contained in:
Charles Bochet
2023-09-09 17:59:56 -07:00
committed by GitHub
parent 86ff522e74
commit cfbeac9c56
5 changed files with 78 additions and 0 deletions

View File

@ -28,6 +28,10 @@ export class EnvironmentService {
);
}
getPort(): number {
return this.configService.get<number>('PORT') ?? 3000;
}
getPGDatabaseUrl(): string {
return this.configService.get<string>('PG_DATABASE_URL')!;
}