Skip to content

The documentation for the proxy configuration explains globs while regexps are used to match paths #3184

Description

@robertpanzer

The documentation for the proxy configuration [1] explains that paths can be matched with glob expressions.
But looking at [2] it seems to me that the proxy uses regexps to match the path.
(Also in my project I got an error using ** and globs don't work)

[1] https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#configuring-the-proxy-manually
[2] https://github.com/facebookincubator/create-react-app/blob/c00358376b50e44313671384c64faf420e8d0c0a/packages/react-dev-utils/WebpackDevServerUtils.js#L367

Edit: Updated URL [2] to use a fix commit instead of referring to master which might end up in Nirvana

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions