chimurai / http-proxy-middleware

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more
MIT License
10.68k stars 826 forks source link

proxyReq not available any more #824

Closed dirk-ecker closed 1 year ago

dirk-ecker commented 1 year ago

Checks

Describe the bug (be clear and concise)

The description should be adjusted to the actual implementation. The event section seems to be wrong. on is not the root, now each event gets an on as a prefix for its name, like onProxyReq.

Step-by-step reproduction instructions

nothing to say here

Expected behavior (be clear and concise)

correct description

How is http-proxy-middleware used in your project?

as a middleware

What http-proxy-middleware configuration are you using?

not relevant

What OS/version and node/version are you seeing the problem?

not relevant

Additional context (optional)

No response

chimurai commented 1 year ago

If you are looking at the github documentation you should see this:

image

On github master you'll see documentation of the 3.0-beta version.

Guess in your setup you are still using v2.x?

dirk-ecker commented 1 year ago

Yes you are right, sorry for the issue.