* fix(serve): provide a clear error with pathless proxy URLs Without this, `dx serve` panics with this message: ``` Paths must start with a `/`. Use "/" for root routes ``` That's not very clear. Instead, we can detect this situation and provide a better error message: ``` Error: 🚫 Serving project failed: Failed to establish proxy: Proxy backend URL must have a non-empty path, e.g. http://localhost:8080/api instead of http://localhost:8080 ``` * docs(config): correct format for `web.proxy`
📦✨ Dioxus CLI
Tooling to supercharge Dioxus projects
Installation
Install stable version
cargo install dioxus-cli
Install from git repository
cargo install --git https://github.com/DioxusLabs/dioxus dioxus-cli
Install from local folder
cargo install --path . --debug
Get Started
Use dx create project-name to initialize a new Dioxus project.
It will be cloned from the dioxus-template repository.
Alternatively, you can specify the template path:
dx create hello --template gh:dioxuslabs/dioxus-template
Dioxus Config File
Dioxus CLI will use Dioxus.toml file to Identify some project info and switch some cli feature.
You can get more configure information from Dioxus CLI Document.