fix(node): align proxy port with default api port (#15754)

This commit is contained in:
Miroslav Jonaš 2023-03-20 15:16:10 +01:00 committed by GitHub
parent ccf938af69
commit a868bce63b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -338,8 +338,8 @@ describe('app', () => {
expect(tree.exists('my-frontend/proxy.conf.json')).toBeTruthy(); expect(tree.exists('my-frontend/proxy.conf.json')).toBeTruthy();
expect(readJson(tree, 'my-frontend/proxy.conf.json')).toEqual({ expect(readJson(tree, 'my-frontend/proxy.conf.json')).toEqual({
'/api': { target: 'http://localhost:3000', secure: false }, '/api': { target: 'http://localhost:3333', secure: false },
'/billing-api': { target: 'http://localhost:3000', secure: false }, '/billing-api': { target: 'http://localhost:3333', secure: false },
}); });
}); });

View File

@ -478,7 +478,7 @@ function normalizeOptions(host: Tree, options: Schema): NormalizedSchema {
linter: options.linter ?? Linter.EsLint, linter: options.linter ?? Linter.EsLint,
unitTestRunner: options.unitTestRunner ?? 'jest', unitTestRunner: options.unitTestRunner ?? 'jest',
rootProject: options.rootProject ?? false, rootProject: options.rootProject ?? false,
port: options.port ?? 3000, port: options.port ?? 3333,
}; };
} }