You can first start the frontend with pnpm dev, which utilizes Vite's hot reload feature to automatically update the front end. Then, use cargo run to start the backend, so that the front end won't reload every time you start the application.
pnpm dev
cargo run