Skip to content

devServer.proxy support array config #2285

Open
@Astray-git

Description

@Astray-git

What problem does this feature solve?

Passing an Array to devServer.proxy is not supported.
It can be used to proxy multiple, specific paths to the same target.

https://webpack.js.org/configuration/dev-server/#devserver-proxy

What does the proposed API look like?

module.exports = {
  //...
  devServer: {
    proxy: [{
      context: ['/auth', '/api'],
      target: 'http://localhost:3000',
    }]
  }
};

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