boolean
false
When a port is occupied, Rsbuild will automatically increment the port number until an available port is found.
Set strictPort
to true
and Rsbuild will throw an exception when the port is occupied.
Enable strict port mode to ensure the dev server fails if the specified port is occupied:
When you need to ensure your application runs on a specific port:
With this configuration, if port 3333 is already in use, Rsbuild will throw an error instead of automatically using port 3334.