-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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] prerendering not working with kit.paths.base
set.
#2407
Conversation
🦋 Changeset detectedLatest commit: 90349a1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
kit.paths.base
set.
Did you see there's also another fix pending for this issue at #2318? I'm not that familiar with this code and haven't looked closely at either PR yet to know which makes more sense |
I have seen that (though somehow only after I had dug through and found this solution). It actually leaves this incorrect behaviour behind and fixes the issue by doing a string replacement before that point instead. That replacement was precisely what the line I fixed is intended to do (and what it did before #2189). Either PR will work, but I suggest that if #2318 is merged it should also remove that Overall I'd say this seems like a cleaner fix to me. |
Hi. I'm author of #2318. (This is just follow up) According to current spec, Therefore my PR's code can move to after the By the way, I have 2 small requests in my opinion.
Now it has
So it should use Thank you! |
Thank you! I agree on the first point, good spot! I don't think the |
Oh right. Thank you for the discussion! |
Just tested this build in my project, the build works perfectly!
But that is a smaller bug that the build not working, which was keeping mermaid.live on v147 till now. @benmccann if this can be merged, that blocker would be fixed :) |
Yup, I had the same sequence of events as you, that's why #2409 came about 😄 Fixed this and then "wait, what's up with |
thanks for testing it |
Great thanks for the fix. But I still have an issue with service-worker.
|
@nikitaiavdeev You might have to raise this as a new issue to keep track of it better. |
Fixes #2230
Local assets were not being excluded from being
visit
ed during prerendering because they were not being detected as being one of the local files.Specifically, this used to work until the semantics of
kit.paths.assets
was changed in #2189 to only be either empty or an absolute (external) path, and assets were instead prefixed withpaths.base
ifpaths.assets
was not an absolute path. This line should have been updated then.Before submitting the PR, please make sure you do the following
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpx changeset
and following the prompts. All changesets should bepatch
until SvelteKit 1.0