-
-
Notifications
You must be signed in to change notification settings - Fork 119
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: correct redirection for examples/[...path] #1130
base: main
Are you sure you want to change the base?
Conversation
@tomoam is attempting to deploy a commit to the Svelte Team on Vercel. A member of the Team first needs to authorize it. |
@@ -1,5 +1,7 @@ | |||
import { redirect } from '@sveltejs/kit'; | |||
|
|||
export const prerender = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yea, that was missing, of course!
I'm wondering though if we should move it into the handle
hook aswell and delete this file, because AFAIK all redirects happen inside handle
right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion. For consistency, it does seem better to consolidate the redirects into the handle
hook. I’ll update the PR to move the redirect logic there and remove the file accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ve completed the changes. Please review at your convenience.
A note on documentation PRs
If this is a documentation PR (i.e. changing content within
apps/svelte.dev/content/docs
), then this is the wrong repository to make those changes. The content in this folder is synced from other repositories. Therefore, these changes should be made in their respective repositories (at https://github.com/sveltejs/svelte or https://github.com/sveltejs/kit, or example).Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.fixes #1129 .
The following need to be checked on the preview site:
/examples
redirects to/playground
/examples/hello-world
redirects to/playground/hello-world
/examples/thumbnails/actions.jpg
is not redirected