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({
|
@EnvironmentVariablesMetadata({
|
||||||
group: EnvironmentVariablesGroup.ServerConfig,
|
group: EnvironmentVariablesGroup.ServerConfig,
|
||||||
description: 'Port for the backend server',
|
description: 'Port for the node server',
|
||||||
})
|
})
|
||||||
@CastToPositiveNumber()
|
@CastToPositiveNumber()
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
PORT = 3000;
|
NODE_PORT = 3000;
|
||||||
|
|
||||||
@EnvironmentVariablesMetadata({
|
@EnvironmentVariablesMetadata({
|
||||||
group: EnvironmentVariablesGroup.ServerConfig,
|
group: EnvironmentVariablesGroup.ServerConfig,
|
||||||
|
|||||||
@ -87,7 +87,7 @@ const bootstrap = async () => {
|
|||||||
// Inject the server url in the frontend page
|
// Inject the server url in the frontend page
|
||||||
generateFrontConfig();
|
generateFrontConfig();
|
||||||
|
|
||||||
await app.listen(environmentService.get('PORT'));
|
await app.listen(environmentService.get('NODE_PORT'));
|
||||||
};
|
};
|
||||||
|
|
||||||
bootstrap();
|
bootstrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user