nuxt / nuxt/devtools

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

Open
#586 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug pr welcome
Dominant language
TypeScript
Stars
3.3k
Forks
214
Avg merge
13h 22m
Merged PRs (30d)
18

Description

🐛 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/devtools/client/composables/state.ts at the referenced line and inspect how _vfs.json is fetched when Nuxt app.baseURL is set. Reproduce the issue with baseURL '/prefix/' behind a proxy serving only that path, then verify that the request uses /prefix/_vfs.json.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
devtools
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.