devtools icon indicating copy to clipboard operation
devtools copied to clipboard

_vfs cannot been retrieved if baseURL is different than / and behind proxy

Open gweill-guigops opened this issue 2 years ago â€ĸ 1 comments

🐛 The bug

_vfs cannot been retrieved if baseURL is different than / and behind proxy

đŸ› ī¸ To reproduce

export default defineNuxtConfig({ app: { baseURL: '/prefix/' }, devtools: { enabled: true }, });

Put your app behind a proxy which serve only your baseUrl

🌈 Expected behavior

_vfs.json is fetched using /prefix/_vfs.json

â„šī¸ Additional context

https://github.com/nuxt/devtools/blob/12dae597b1c9e1e77749b3ea5ddde71c60847d2b/packages/devtools/client/composables/state.ts#L73

gweill-guigops avatar Jan 19 '24 11:01 gweill-guigops

any news here? facing the same issue when running nuxt in a container and using proxy_pass

MortenROSE avatar May 16 '25 09:05 MortenROSE