Skip to content

How do I add more than one proxy? #1921

Description

@kwingat

How do I add more than one proxy. In the documentation, only one way is shown:
"proxy": "http://localhost:4000"

But I need add a few patterns for my proxy like:
"proxy": { "/api/*": "http://localhost:4000", "/forms/*": "http://localhost:4000", "/content/*": "http://localhost:4000" }

I would normally write this like so in my webpack.config file but this isn't working:
devServer: { proxy: { "/api/*": "http://localhost:4000", "/forms/*": "http://localhost:4000", "/content/*": "http://localhost:4000" } }

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions