Skip to content

[fix] set Vite base URL#8046

Merged
benmccann merged 4 commits intomasterfrom
base
Dec 10, 2022
Merged

[fix] set Vite base URL#8046
benmccann merged 4 commits intomasterfrom
base

Conversation

@benmccann
Copy link
Copy Markdown
Member

Setting Vite's base URL makes the 404 message a bit different in dev vs prod, but that seems like a very minor issue. Setting it will make a number of things easier like probably allowing us to fix #2958, fix Vite PWA trying to read the base path from Vite, etc.

There were a few places I added trailing slashes. This avoids unnecessary redirects and makes the tests run faster and be less flaky. That probably could have been a separate PR, but I found it while working on this, so just crammed them in here

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Dec 9, 2022

🦋 Changeset detected

Latest commit: 810450d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread packages/kit/test/apps/options/test/test.js Outdated
@benmccann benmccann merged commit 5dc7f9f into master Dec 10, 2022
@benmccann benmccann deleted the base branch December 10, 2022 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dev server does not apply base path correctly

2 participants