Skip to content

Commit fb4e7f6

Browse files
chore: setup redirects from obsolete sites (sveltejs#538)
* chore: setup redirects from obsolete sites create a vercel.json for each of them and redirect to the corresponding pages on svelte.dev * add redirects * update a few specific exercises * remove permanent, until we're confident * add catch-all * rename * fix --------- Co-authored-by: Rich Harris <[email protected]>
1 parent ac3fe1a commit fb4e7f6

File tree

6 files changed

+619
-0
lines changed

6 files changed

+619
-0
lines changed

apps/kit.svelte.dev/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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

apps/kit.svelte.dev/vercel.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "https://openapi.vercel.sh/vercel.json",
3+
"redirects": [
4+
{
5+
"source": "/",
6+
"destination": "https://svelte.dev/",
7+
"permanent": true
8+
},
9+
{
10+
"source": "/docs/modules",
11+
"destination": "https://svelte.dev/docs/kit/@sveltejs-kit",
12+
"permanent": true
13+
},
14+
{
15+
"source": "/docs/types",
16+
"destination": "https://svelte.dev/docs/kit/@sveltejs-kit",
17+
"permanent": true
18+
},
19+
{
20+
"source": "/docs/(.*)",
21+
"destination": "https://svelte.dev/docs/kit/$1",
22+
"permanent": true
23+
},
24+
{
25+
"source": "/(.*)",
26+
"destination": "https://svelte.dev"
27+
}
28+
]
29+
}

apps/learn.svelte.dev/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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

0 commit comments

Comments
 (0)