Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/kit.svelte.dev/README.md
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
25 changes: 25 additions & 0 deletions apps/kit.svelte.dev/vercel.json
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",
Copy link
Member

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

Copy link
Member

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

"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
}
Copy link
Member

Choose a reason for hiding this comment

The 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?

]
}
1 change: 1 addition & 0 deletions apps/learn.svelte.dev/README.md
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
10 changes: 10 additions & 0 deletions apps/learn.svelte.dev/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"redirects": [
{
"source": "/(.*)",
Copy link
Member Author

Choose a reason for hiding this comment

The 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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right, because of the /tutorial/svelte vs /tutorial/kit thing

"destination": "https://svelte.dev/$1",
"permanent": true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might want to skip permanent on whatever fallback we have for this one so that if there's some URL we missed we have an opportunity to fix it

}
]
}
1 change: 1 addition & 0 deletions apps/omnisite-svelte.vercel.app/README.md
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
10 changes: 10 additions & 0 deletions apps/omnisite-svelte.vercel.app/vercel.json
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
}
]
}
Loading