Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.3k
-
The matching behaviour and the docsAssume there's a config about {'/bar':{target:'<url>',}} It can match not only the path The English version of the document says that we should use ![]() But the Chinese version gives us the code that uses just ![]() Why it is not as expectedBy default, Various RESTful frameworks (Express, Koa, Gin, Django, Spring) and web servers (Nginx, Apache), as well as Why it happensThe cause is atprepareProxy.js#L73: if(context){// Explicit context, e.g. /apireturnpathname.match(context)} The So we are actually executing What to do thenConsidering this project is in maintenance mode, the behaviour may not be changed; but maybe we can make it clearer in the document.
|
BetaWas this translation helpful?Give feedback.