fix: serve and preview with base#8772
fix: serve and preview with base#8772JounQin wants to merge 5 commits intovitejs:mainfrom JounQin:fix/base
Conversation
✅ Deploy Preview for vite-docs-main ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
| ) { | ||
| // redirect root visit to based url with search and hash | ||
| res.writeHead(302, { | ||
| Location: devBase + (parsed.search || '') + (parsed.hash || '') |
There was a problem hiding this comment.
parsed.search and parsed.hash will never be null/undefined.
|
This won't really work with SvelteKit. We have a Perhaps Vite should accept |
|
@benmccann It didn’t work at all previously so would it break SvelteKit? Of course I agree we should support base without slash. |
|
SvelteKit historically hasn't used the |
|
@sapphi-red Any progress on this? |
|
No, I've put this in the team board but not discussed yet. |
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> Closes vitejs/vite#9236 Closes vitejs/vite#8770 Closes vitejs/vite#8772
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> Closes vitejs/vite#9236 Closes vitejs/vite#8770 Closes vitejs/vite#8772
Description
close #8770
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).