Static build: frame/panel URLs are still absolute when output is hosted at a subpath
Describe the bug
Follow-up to vitejs/devtools#554.
After the fix, the root redirect and the DevTools SPA itself resolve correctly under a deploy base, but the URLs baked into the emitted manifests and RPC dumps are still root-absolute, so every sub-panel 404s.
Reproduction
Clone https://github.com/arkadiusz-swierczek-pm/vite-devtools-static-output-subpath; npm ci; npm run build -- --base /ci-build-123456/; node server.ts
System Info
System:
OS: Windows 11 10.0.26200
CPU: (12) x64 Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz
Memory: 19.77 GB / 31.61 GB
Binaries:
Node: 24.14.0 - C:\Program Files\nodejs\node.EXE
npm: 11.9.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 153.0.8010.52
Edge: Chromium (152.0.4191.53)
Firefox: 148.0 - C:\Program Files\Mozilla Firefox\firefox.exe
Used Package Manager
npm
Validations
- [x] Follow our Code of Conduct
- [x] Read the Contributing Guide.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [x] The provided reproduction is a minimal reproducible of the bug.
Thanks for the reproduction, it made this easy to trace. The root cause is upstream in @devframes/hub: buildHub bakes root-absolute URLs for frame bases, dock entries, and page scripts, so the deploy path never reaches them. I opened devframes/devframe#494 to add a deployBase option for static builds.
The Vite side needs one line in buildStaticDevTools plus that hub release. There's a draft PR (#641) ready, and I'll mark it ready once the release is out.