DioxusLabs / DioxusLabs/dioxus
base_path does not work with dx bundle
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
`dx bundle` doesn't work with `base_path`
**Steps To Reproduce**
- Set up SSG following https://dioxuslabs.com/learn/0.6/guides/fullstack/static_site_generation
- Set a `base_path` in `Dioxus.toml`
- Attempt to run `dx bundle`
I've created a minimum repo that demonstrates this bug with a README here: https://github.com/Gisleburt/dioxus-base-path-issue
**Expected behavior**
Static Site Generation should create a bundle that opperates from `base_path`
**Build Log**
```text
ERROR err=Other(Failed to parse static routes from the server. Make sure your server function returns Vec with the (default) json encoding
```
**Environment:**
- Dioxus version: v0.6.0
- Rust version: v1.84.1
- OS info: macOS
- App platform: web
**Questionnaire**
I'm interested in fixing this myself but don't know where to start.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked minimum repository README and the static site generation guide, then trace the dx bundle path that parses static routes when Dioxus.toml contains base_path. Reproduce the macOS failure on Dioxus 0.6.0 and verify that static site generation produces a bundle operating from base_path without the static-route parsing error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100