fix(node): use consistent default port (#16491)

Co-authored-by: Philip Fulcher <philipfulcher@Philips-MacBook-Air.local>
This commit is contained in:
Philip Fulcher 2023-04-25 15:49:59 -06:00 committed by GitHub
parent 555cacd87d
commit 3d5b849826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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 },
});
});

View File

@ -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,
};
}