Skip to content

Add ability to use multiple proxies for development #1780

Closed

Description

@mwq27

I want to be able to pass in multiple proxies in my package.json, instead of just one string.

Activity

  1. gaearon commented on Mar 9, 2017

    @gaearon
    Contributor

    Okay, I agree it’s probably worth supporting it. It’s been requested multiple times.
    It would be good to also solve #1702 while we’re at it.

    Do you have a proposed format? Should we use the same format WebpackDevServer uses? Perhaps we should also do #671 as a part of this.

    Happy to review PRs.

  2. mwq27 commented on Mar 10, 2017

    @mwq27
    Author

    I was thinking that what can be passed into the proxy property is an object, like webpackdevServer.

    {
      ...
      "proxy": {
        "/myApiUrl": {
                target: 'http://some.target.com:4000',
                changeOrigin: true
            }
      }
      ...
    }
  3. jamesblight commented on Mar 11, 2017

    @jamesblight
    Contributor

    @gaearon I've made a PR for this when you get time #1790

  4. Rkiouak commented on May 11, 2017

    @Rkiouak

    Would love to see this merged in, james PR looks great

  5. Timer commented on May 15, 2017

    @Timer
    Contributor

    🎆

  6. gaearon commented on May 16, 2017

    @gaearon
    Contributor

    Please help beta test the new version that includes this change!
    #2172

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