replacePrefixBy

A path section that replaces the captured url.

Example

vite {
server {
proxy("/foo", "http://localhost:4567", replacePrefixBy = "bar")
}
}

Then, a GET /foo is proxied to GET http://localhost:4567/bar.