light-server
light-server copied to clipboard
feat: add pathRewriteRule and pathRewriteTo options
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