Skip to content

ng serve --proxy-config unspecified #20827

@Chealer

Description

@Chealer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsRelated to the documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions