From 883f4561a41e89e921db49a64da162f1e7b18d1b Mon Sep 17 00:00:00 2001 From: Philip Fulcher Date: Sun, 23 Apr 2023 20:13:44 -0600 Subject: [PATCH] fix(node): use consistent default port --- packages/node/src/generators/application/application.spec.ts | 4 ++-- packages/node/src/generators/application/application.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node/src/generators/application/application.spec.ts b/packages/node/src/generators/application/application.spec.ts index d26bcd5d2cf8f..d3af66f1d6ed3 100644 --- a/packages/node/src/generators/application/application.spec.ts +++ b/packages/node/src/generators/application/application.spec.ts @@ -323,8 +323,8 @@ describe('app', () => { expect(tree.exists('my-frontend/proxy.conf.json')).toBeTruthy(); expect(readJson(tree, 'my-frontend/proxy.conf.json')).toEqual({ - '/api': { target: 'http://localhost:3333', secure: false }, - '/billing-api': { target: 'http://localhost:3333', secure: false }, + '/api': { target: 'http://localhost:3000', secure: false }, + '/billing-api': { target: 'http://localhost:3000', secure: false }, }); }); diff --git a/packages/node/src/generators/application/application.ts b/packages/node/src/generators/application/application.ts index 698e4f25476dd..7c589b7de75ee 100644 --- a/packages/node/src/generators/application/application.ts +++ b/packages/node/src/generators/application/application.ts @@ -483,7 +483,7 @@ function normalizeOptions(host: Tree, options: Schema): NormalizedSchema { linter: options.linter ?? Linter.EsLint, unitTestRunner: options.unitTestRunner ?? 'jest', rootProject: options.rootProject ?? false, - port: options.port ?? 3333, + port: options.port ?? 3000, }; }