If you don't have Rust nightly, you can install it with
rustup toolchain install nightly --allow-downgradeYou can add the wasm compilation target to rust using
rustup target add wasm32-unknown-unknownTo develop your Leptos CSR project, running
cargo leptos watchwill start a development server at http://localhost:3000 with hot-reload enabled.
To build a Leptos CSR app for release, use the command
cargo leptos build --releaseThis will output the files necessary to run your app into the target/site/ folder; you can then use any static site host to serve these files.
For further information about hosting Leptos CSR apps, please refer to the Leptos Book chapter on deployment available here.