replacePrefixBy
A path section that replaces the captured url.
Example
vite {
server {
proxy("/foo", "http://localhost:4567", replacePrefixBy = "bar")
}
}
Content copied to clipboard
Then, a GET /foo
is proxied to GET http://localhost:4567/bar
.