number8080When running the dev and serve commands, Modern.js will start with 8080 as the default port and automatically increase the port number when the port is occupied. You can use this configuration to modify the port number that the Server starts with:
export default defineConfig({
server: {
port: 3000,
},
});The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - server.port.