Skip to content

Conversation

@hagevvashi
Copy link

@hagevvashi hagevvashi commented Dec 3, 2020

This PR enables path-rewriting when proxying by using http-proxy-middleware.

as-is

we cannot proxy below pattern

from http://localhost:8000/api/todos/1 to http://localhost:8001/api/todos/1

to-be

we can proxy below pattern

from http://localhost:8000/api/todos/1 to http://localhost:8001/todos/1

"connect-history-api-fallback": "^1.6.0",
"connect-injector": "^0.4.4",
"gaze": "^1.1.3",
"http-proxy": "^1.18.1",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could I remove this?

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

Successfully merging this pull request may close these issues.

2 participants