You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DevTools tab iframe does not respect app.baseURL #321
The DevTools custom tab registers its iframe src with a hardcoded route (/__nuxt-hints), without prepending nuxt.options.app.baseURL. This causes the DevTools tab to fail loading when the app is served behind a reverse proxy with a custom base path.
Reproduction
Configure app.baseURL to a non-root value (e.g., /my-app/)
Serve the app behind a reverse proxy
Open Nuxt DevTools → Hints tab
The iframe fails to load because it requests /__nuxt-hints instead of /my-app/__nuxt-hints
Root cause
In src/devtools.ts, the addCustomTab call uses the bare route constant:
view: {type: 'iframe',src: DEVTOOLS_UI_ROUTE,// ← does not account for baseURL},
Expected behavior
The iframe src should be constructed using joinURL(nuxt.options.app?.baseURL || '/', DEVTOOLS_UI_ROUTE) so it respects the configured base path.
Context
This is the exact same bug that was reported and fixed in @nuxt/a11y:
Activity