Skip to content

devServer.proxy config only allow simple options for http-proxy-middleware #2439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
showapi opened this issue Sep 5, 2018 · 1 comment
Closed

Comments

@showapi
Copy link

showapi commented Sep 5, 2018

Version

3.0.1

Node and OS info

Node 10.7.0 / yarn 1.7.0 / OS High Sierra

Steps to reproduce

devServer: {
    port:3005,
    proxy:[
      {
        context: [
          '**',
          '!/js/appDist/**'
        ],
        target: 'http://'   ip.address()   ':8080',
        secure: false,

      }]
  }

What is expected?

can use complete http-proxy-middleware config

What is actually happening?

can't use Complicated http-proxy-middleware config


From the source it is clear that only simple matcher is supported, And it's not support Array config, For example reproduce

return pathname.match(context)

@haoqunjiang
Copy link
Member

Duplicate of #2285

@haoqunjiang haoqunjiang marked this as a duplicate of #2285 Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants