port

@get:Internal
abstract val port: Property<Int>(source)

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

vite {
server {
port = 5173
}
}

External resources