proxy

open fun proxy(url: String, target: String, changeOrigin: Boolean = false, ws: Boolean = false, replacePrefixBy: String? = null)(source)

Configures the proxies started by the Vite development server.

Example

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

External resources