Navigation Menu

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

ng serve --proxy-config unspecified #20827

Closed
Chealer opened this issue May 17, 2021 · 3 comments · Fixed by #20829
Closed

ng serve --proxy-config unspecified #20827

Chealer opened this issue May 17, 2021 · 3 comments · Fixed by #20829
Labels
area: docs Related to the documentation

Comments

@Chealer
Copy link

Chealer commented May 17, 2021

Bug Report

Affected Package

I am not sure what package is responsible. ng serve requires ng-cli.

Is this a regression?

This does not report a behavioral bug.

Description

The ng serve command supports several options, which are listed in the Options section of its documentation page. One of the useful options is --proxy-config, which allows to proxy to backend servers. Unfortunately, its documentation is limited to:

--proxy-config Proxy configuration file. string

While this clearly implies that the value is the path to a configuration file, the semantics of that file are entirely unspecified.

Minimal Reproduction

This does not report a behavioral bug.

Exception or Error




Your Environment

Angular Version:


Angular CLI: 8.3.29
Node: 12.19.0
OS: win32 x64
Angular: 8.2.14
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.803.29
@angular-devkit/build-angular     0.803.29
@angular-devkit/build-optimizer   0.803.29
@angular-devkit/build-webpack     0.803.29
@angular-devkit/core              8.3.29
@angular-devkit/schematics        8.3.29
@angular/cdk                      8.2.3
@angular/cli                      8.3.29
@angular/material                 8.2.3
@ngtools/webpack                  8.3.29
@schematics/angular               8.3.29
@schematics/update                0.803.29
rxjs                              6.6.3
typescript                        3.5.3
webpack                           4.39.2

Anything else relevant?

No

No

The documentation about proxying hints about what kind of files --proxy-config expects.

@gkalpak
Copy link
Member

gkalpak commented May 17, 2021

Thx for reporting this, @Chealer! Moving over to the CLI repo, since that is where the docs source for CLI commands live.

@gkalpak gkalpak transferred this issue from angular/angular May 17, 2021
@alan-agius4
Copy link
Collaborator

I think in this case there are 2 parts for this fix.

  1. From https://angular.io/cli/serve#options we link to https://angular.io/guide/build#proxying-to-a-backend-server
  2. In https://angular.io/guide/build#proxying-to-a-backend-server we provide more details about the format.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: docs Related to the documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants