Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

angular-http-server - command cannot access the config file #53

Open
tc-dev-git opened this issue Dec 14, 2022 · 0 comments
Open

angular-http-server - command cannot access the config file #53

tc-dev-git opened this issue Dec 14, 2022 · 0 comments

Comments

@tc-dev-git
Copy link

tc-dev-git commented Dec 14, 2022

cmd: angular-http-server index.html --config configs/config.js

The config is at the root level in the configs folder.

Config file:


module.exports = {
  p: 4200,
  proxy: [{
    forward: ["api/"],
    target: "localhost:3000",
    protocol: "http",
  }],
};

The port number never changes to 4200.
Its always port 8080.

No errors in the terminal but seems like its not reading the config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant