ViteServerConfig¶
Properties¶
host¶
Specify which IP addresses the server should listen on.
Set this to 0.0.0.0 to listen on all addresses, including LAN and public addresses.
Example¶
External resources¶
-
When using the WSL, see the documentation.
port¶
Specify server port.
Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on.
Example¶
External resources¶
proxies¶
@get:
Internal
abstract val proxies: ListProperty<ProxyOptions>
Configures the proxies started by the Vite development server.
Example¶
External resources¶
See also
strictPort¶
@get:
Internal
abstract val strictPort: Property<Boolean>
Set to true to exit if port is already in use, instead of automatically trying the next available port.