-
-
Notifications
You must be signed in to change notification settings - Fork 191
chore: setup redirects from obsolete sites #538
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
Changes from 1 commit
540c61f
04587f4
a3fd8f3
4050aa0
a1473ae
9c579df
672d4c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
kit.svelte.dev once was the home for SvelteKit, now its deployment just ensures that we redirect to the corresponding pages on svelte.dev |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "https://openapi.vercel.sh/vercel.json", | ||
"redirects": [ | ||
{ | ||
"source": "/", | ||
"destination": "https://svelte.dev/", | ||
"permanent": true | ||
}, | ||
{ | ||
"source": "/docs/modules", | ||
"destination": "https://svelte.dev/docs/kit/@sveltejs-kit", | ||
"permanent": true | ||
}, | ||
{ | ||
"source": "/docs/types", | ||
"destination": "https://svelte.dev/docs/kit/@sveltejs-kit", | ||
"permanent": true | ||
}, | ||
{ | ||
"source": "/docs/(.*)", | ||
"destination": "https://svelte.dev/docs/kit/$1", | ||
"permanent": true | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we have a catch-all fallback, so that people at least end up on the right site if they somehow find a bad link? |
||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
learn.svelte.dev once was the home for the Svelte(Kit) tutorial, now its deployment just ensures that we redirect to the corresponding pages on svelte.dev |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://openapi.vercel.sh/vercel.json", | ||
"redirects": [ | ||
{ | ||
"source": "/(.*)", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will be cumbersome; we basically need to go through all the links and find out the right equivalent on the new one There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah right, because of the |
||
"destination": "https://svelte.dev/$1", | ||
"permanent": true | ||
|
||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
omnisite-svelte.vercel.app was the preview site for svelte.dev, now its deployment just ensures that we redirect to the corresponding pages on svelte.dev |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://openapi.vercel.sh/vercel.json", | ||
"redirects": [ | ||
{ | ||
"source": "/(.*)", | ||
"destination": "https://svelte.dev/$1", | ||
"permanent": true | ||
} | ||
] | ||
} |
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.
we need a URL for each individual type here
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 think we're going to have to build an app which checks what the hash is and redirects it appropriately to the correct page