App: Use /racepicks as default page (reroute / + change Formula11 button destination)

This commit is contained in:
2025-01-31 00:45:30 +01:00
parent 0985936c64
commit 01d58e3d1e
4 changed files with 18 additions and 7 deletions

10
src/hooks.ts Normal file
View File

@ -0,0 +1,10 @@
import type { Reroute } from "@sveltejs/kit";
const rerouted: Record<string, string> = {};
// NOTE: This does not change the browser's address bar (the route path)!
export const reroute: Reroute = ({ url }) => {
if (url.pathname in rerouted) {
return rerouted[url.pathname];
}
};