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

  1. Timer commented on Apr 1, 2017

    @Timer
    Contributor

    This is currently a WIP and you can comment on the proposal here: #1790.

    The original issue is #1780 (of which this issue is a duplicate).

    You can see if you can help expedite #1790 by commenting there. 😄

  2. locked and limited conversation to collaborators on Jan 22, 2019
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