diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts new file mode 100644 index 0000000..d2290a3 --- /dev/null +++ b/src/routes/+layout.server.ts @@ -0,0 +1,7 @@ +import { redirect } from '@sveltejs/kit'; +import type { LayoutServerLoad } from './$types'; + +export const load: LayoutServerLoad = ({ url }) => { + let path = url.pathname; + throw redirect(301, `https://frog.ski${url.pathname}`); +};