Skip to content

Commit

Permalink
fix(node): Update Proxy config port number
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcunningham committed Feb 10, 2023
1 parent db7ee99 commit 1123fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/node/src/generators/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function addProxy(tree: Tree, options: NormalizedSchema) {
JSON.stringify(
{
'/api': {
target: 'http://localhost:3333',
target: `http://localhost:${options.port}`,
secure: false,
},
},
Expand All @@ -234,7 +234,7 @@ function addProxy(tree: Tree, options: NormalizedSchema) {
const proxyModified = {
...JSON.parse(proxyFileContent),
[`/${options.name}-api`]: {
target: 'http://localhost:3333',
target: `http://localhost:${options.port}`,
secure: false,
},
};
Expand Down

0 comments on commit 1123fa6

Please sign in to comment.