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

fix(vite): use baseURL + assetsDir as base in dev mode #7234

Merged
merged 1 commit into from
Sep 5, 2022
Merged

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/nuxt#14797, resolves nuxt/nuxt#14587

❓ 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

This adds a vite base in dev mode which prevents collisions with pages (e.g. ~/pages/app.vue and ~/app.vue) and also respects baseURL.

πŸ“ Checklist

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

@danielroe danielroe added bug Something isn't working vite 🍰 p2-nice-to-have Priority 2: nothing is broken but it's worth addressing labels Sep 5, 2022
@danielroe danielroe requested a review from pi0 September 5, 2022 08:41
@danielroe danielroe self-assigned this Sep 5, 2022
@netlify
Copy link

netlify bot commented Sep 5, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit a96c64a
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/6315b61df972d2000964f3e9

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (i trust you already tested)

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 🍰 p2-nice-to-have Priority 2: nothing is broken but it's worth addressing vite
Projects
None yet
2 participants