The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
refactor(server): rename PORT to NODE_PORT (#10193)
Antoine Moreaux8bd2f5c3c44c
diff --git a/packages/twenty-server/src/engine/core-modules/environment/environment-variables.ts b/packages/twenty-server/src/engine/core-modules/environment/environment-variables.tsindex 460880425ac..b4b7553c3d8 100644--- a/packages/twenty-server/src/engine/core-modules/environment/environment-variables.ts+++ b/packages/twenty-server/src/engine/core-modules/environment/environment-variables.ts@@ -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,diff --git a/packages/twenty-server/src/main.ts b/packages/twenty-server/src/main.tsindex 81c16f7dc14..f884512429a 100644--- a/packages/twenty-server/src/main.ts+++ b/packages/twenty-server/src/main.ts@@ -87,7 +87,7 @@ const bootstrap = async () => {// Inject the server url in the frontend pagegenerateFrontConfig();- await app.listen(environmentService.get('PORT'));+ await app.listen(environmentService.get('NODE_PORT'));};bootstrap();