Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dotmot opened this issue Jan 27, 2024 · 0 comments
Closed

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

dotmot opened this issue Jan 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dotmot
Copy link
Contributor

dotmot commented Jan 27, 2024

🐛 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] #588

@dotmot dotmot added the bug Something isn't working label Jan 27, 2024
@antfu antfu closed this as completed in 97386b2 Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant