nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.85k stars 153 forks source link

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

Open gweill-guigops opened 7 months ago

gweill-guigops commented 7 months ago

🐛 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