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:
@ -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,
|
||||
|
||||
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user