Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(vite): prevent overlap between vite assets and app routes #7989

Merged
merged 1 commit into from Oct 11, 2022

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/nuxt#15052

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

As is, /app will render /app.vue. (The base config option is completely ignored - and in fact removed by vite - so no need to do the same ourselves.) A workaround is to inject and remove a random string to bypass matching vite-handled paths.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added bug Something isn't working vite πŸ”¨ p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage labels Oct 4, 2022
@danielroe danielroe requested a review from antfu October 4, 2022 18:34
@danielroe danielroe self-assigned this Oct 4, 2022
@codesandbox
Copy link

codesandbox bot commented Oct 4, 2022

CodeSandbox logoCodeSandbox logoΒ  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@netlify
Copy link

netlify bot commented Oct 4, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 550b4db
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/633c7cad0e4fdb00082febd7

@vercel vercel bot temporarily deployed to Preview October 4, 2022 18:34 Inactive
@danielroe danielroe requested a review from Atinux October 9, 2022 19:56
@danielroe danielroe mentioned this pull request Oct 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.x bug Something isn't working πŸ”¨ p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage vite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/app renders app.vue in development
3 participants