refactor(server): rename PORT to NODE_PORT (#10193)

Updated the environment variable name from PORT to NODE_PORT for more
clarity and alignment with node server conventions. Adjusted references
in configuration and application bootstrap accordingly.

Fix #10017
This commit is contained in:
Antoine Moreaux
2025-02-14 10:03:58 +01:00
committed by GitHub
parent f45f7c28f2
commit 8bd2f5c3c4
2 changed files with 3 additions and 3 deletions

View File

@ -747,12 +747,12 @@ export class EnvironmentVariables {
@EnvironmentVariablesMetadata({
group: EnvironmentVariablesGroup.ServerConfig,
description: 'Port for the backend server',
description: 'Port for the node server',
})
@CastToPositiveNumber()
@IsNumber()
@IsOptional()
PORT = 3000;
NODE_PORT = 3000;
@EnvironmentVariablesMetadata({
group: EnvironmentVariablesGroup.ServerConfig,

View File

@ -87,7 +87,7 @@ const bootstrap = async () => {
// Inject the server url in the frontend page
generateFrontConfig();
await app.listen(environmentService.get('PORT'));
await app.listen(environmentService.get('NODE_PORT'));
};
bootstrap();