Skip to content

Commit

Permalink
fix redirects (#819)
Browse files Browse the repository at this point in the history
* fix redirects

* bump
  • Loading branch information
Rich-Harris authored Nov 7, 2024
1 parent 42cd65f commit 5daa90b
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 33 deletions.
4 changes: 2 additions & 2 deletions apps/svelte.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"devDependencies": {
"@resvg/resvg-js": "^2.6.2",
"@supabase/supabase-js": "^2.43.4",
"@sveltejs/adapter-vercel": "^5.4.3",
"@sveltejs/adapter-vercel": "^5.4.7",
"@sveltejs/enhanced-img": "^0.3.4",
"@sveltejs/kit": "^2.7.7",
"@sveltejs/kit": "^2.8.0",
"@sveltejs/site-kit": "workspace:*",
"@sveltejs/vite-plugin-svelte": "4.0.0-next.6",
"@types/cookie": "^0.6.0",
Expand Down
3 changes: 3 additions & 0 deletions apps/svelte.dev/src/routes/tutorial/[...slug]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@ export function entries() {
// So that redirects from these URLs to /tutorial/<svelte/kit>/... work
entries.push({ slug: 'svelte' }, { slug: 'kit' });

// So that /tutorial/ redirects to /tutorial
entries.push({ slug: '' });

return entries;
}
2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@replit/codemirror-lang-svelte": "^6.0.0",
"@replit/codemirror-vim": "^6.0.14",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.7.7",
"@sveltejs/kit": "^2.8.0",
"@sveltejs/package": "^2.0.0",
"@sveltejs/repl": "workspace:*",
"@sveltejs/site-kit": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"devDependencies": {
"@lezer/common": "^1.2.1",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.7.7",
"@sveltejs/kit": "^2.8.0",
"@sveltejs/package": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "4.0.0",
"@types/estree": "^1.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/site-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"svelte-persisted-store": "^0.9.2"
},
"devDependencies": {
"@sveltejs/kit": "^2.7.7",
"@sveltejs/kit": "^2.8.0",
"@types/node": "^20.12.11",
"flexsearch": "^0.7.43",
"magic-string": "^0.30.11",
Expand Down
56 changes: 28 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5daa90b

Please sign in to comment.