url
The path that should be intercepted by the proxy.
Example
vite {
server {
proxy("/foo", "http://localhost:4567")
// The URL can also be declared as a regex:
proxy("^/fallback/.*", "http://jsonplaceholder.typicode.com", changeOrigin = true)
}
}
Content copied to clipboard