Skip to content

Commit

Permalink
Update apps/svelte.dev/src/hooks.server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Jan 30, 2025
1 parent 918a8a4 commit c208a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/svelte.dev/src/hooks.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export async function handle({ event, resolve }) {
redirect(307, destination);
}

// For REPL. In SvelteKit, redirects can also be handled in +page.server.js,
// for example, see routes/examples/[...path]/+page.server.ts file.
// For REPL. For some reason, the repl/+page.server.ts file is not working, so
// we are doing the redirect here
if (event.url.pathname.startsWith('/repl')) {
redirect(307, event.url.pathname.replace('/repl', '/playground'));
}
Expand Down

0 comments on commit c208a6b

Please sign in to comment.