Closed joystick closed 3 years ago
Hi there, looking for recipe how to rewrite url in proxy module. In previous version(s) we had koa-http-proxy doing the job via proxyReqPathResolver. Please advise how to rewrite url withfastify-http-proxy opts. Thank you, Alex
koa-http-proxy
proxyReqPathResolver
fastify-http-proxy
There's several examples here
In general you'll just specify your listening route as from and the full destination (with rewrite) as to
from
to
Hi there, looking for recipe how to rewrite url in proxy module. In previous version(s) we had
koa-http-proxy
doing the job viaproxyReqPathResolver
. Please advise how to rewrite url withfastify-http-proxy
opts. Thank you, Alex