nuxt / devtools

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

fix: vite-inspect won't use buildAssetsDir even if defined #589

Closed dotmot closed 7 months ago

dotmot commented 7 months ago

🐛 The bug

When buildAssetsDir is configured in nuxt.config.ts the vite-inspect tab will show a 404 as it tries to visit /_nuxt/__inspect/ instead of the /[buildAssetsDir]/__inspect.

This is due to the vite-inspect having this path hardcoded here.

I have open a PR that fixes this.

🛠ī¸ To reproduce

https://stackblitz.com/edit/github-albcch?file=nuxt.config.ts

🌈 Expected behavior

The vite-inspect implementation should use buildAssetsDir when defining its src path.

ℹī¸ Additional context

[pr] https://github.com/nuxt/devtools/pull/588