Repository navigation
docs: Document WASM subdirectory hosting - #24244
Conversation
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24244/docs/index.html |
morning4coffe-dev
left a comment
There was a problem hiding this comment.
Reviewed a38541543171. The documented override matches the SDK's default root base path and the referenced bootstrapper's URL generation.
I traced the net10 bootstrapper pin (10.1.0-dev.214, source commit 1e094106842f): WebAppBasePath is passed into asset generation, index/config/dependency URLs use it, and the runtime's framework import is relative to the generated bootstrap module. Setting ./ keeps the resources relative to the deployed app directory. The package targets also use PublishDir/wwwroot for published framework/config assets, consistent with the documented output layout.
The deep-link caveat is important and correctly retained: relative asset addressing does not configure the hosting server's unknown-route behavior. A fallback must also preserve an appropriate base URL for the app.
Validation scope: SDK/package-target and pinned bootstrapper source inspection, not a new publish or GitHub Pages deployment.
|
This pull request is merged. |
GitHub Issue: closes #22913
PR Type:
📚 Documentation content changes
What changed? 🚀
Added guidance for hosting Uno WebAssembly apps under subdirectories and GitHub Pages using
WasmShellWebAppBasePath=./, including publish commands, relative asset behavior, and the deep-link fallback limitation.PR Checklist ✅
Testing
git diff --checkpassedDisclosure
Documentation-only change. No runtime or production behavior changed.