-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
paths.base regression between next.227 and next.228 #4927
Comments
I'm encountering the same problem. |
This is fixed by #4928. Note that there's a bug in the repro though, which may or may not be present in your app (in which case it presumably only surfaced with the more recent versions of Kit) — the redirect doesn't take It should be changed like so: <script context="module" lang="ts">
+ import { base } from '$app/paths';
import type { LoadInput, LoadOutput } from '@sveltejs/kit';
export function load({ stuff }: LoadInput): LoadOutput {
return {
status: 302,
- redirect: '/introduction/welcome'
+ redirect: `${base}/introduction/welcome`
};
}
</script> |
Oh you're right about the repro, my bad. It was not present in my app. Thanks for the quick fix! |
* only skip files that were already written when prerendering - fixes #4927 * update lockfile
Describe the bug
I have a website with a customized
paths.base
set to/api/docs
. Myìndex.svelte
is a pretty basic file that has a redirect in it, redirecting to the first page of my website (which in my case is/introduction/welcome
):In version
next.227
, my website could be successfully built and all the html files were built. Starting fromnext.228
, the build step no longer takes the redirect fromindex.svelte
and doesn't render the rest of the website. I am almost certain it is linked to this commit, but I am not entirely sure.Details
svelte-static
adapterpaths.base
configurationindex.svelte
redirects to another pageReproduction
I've made a minimal reproduction example:
https://github.com/pelletier197/sveltekit-bug-reproduction
In case it may be useful, my full project is public and available here.
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: