ProxyOptions
data class ProxyOptions(val url: String, val target: String, val changeOrigin: Boolean, val ws: Boolean, val replacePrefixBy: String?) : Serializable(source)
Configures the proxies started by the Vite development server.
Example
vite {
server {
proxy("/foo", "http://localhost:4567")
}
}
Content copied to clipboard
External resources
See also
Constructors
Properties
Link copied to clipboard
Changes the origin of the host header to the target URL.
Link copied to clipboard
A path section that replaces the captured url.