Vite for Gradle • opensavvy.gradle.vite.base.config • ProxyOptions
ProxyOptions¶
data class ProxyOptions(val url: String, val target: String, val changeOrigin: Boolean, val ws: Boolean, val replacePrefixBy: String?) : Serializable
Configures the proxies started by the Vite development server.
Example¶
External resources¶
See also¶
Constructors¶
ProxyOptions
¶
Properties¶
changeOrigin
¶
val changeOrigin: Boolean
Changes the origin of the host header to the target URL.
replacePrefixBy
¶
val replacePrefixBy: String?
A path section that replaces the captured url
.
target
¶
The URL that the proxy should redirect to.
url
¶
The path that should be intercepted by the proxy.
ws
¶
true
to proxy WebSockets.