Files
homepage/src/params/recipeLang.ts
T
Alexander 0ea69f890a add route matcher to fix /login and /logout routes
Use SvelteKit param matcher to constrain [recipeLang] to only match
'recipes' or 'rezepte', preventing it from catching /login, /logout,
and other non-recipe routes.
2025-12-26 22:48:01 +01:00

6 lines
155 B
TypeScript

import type { ParamMatcher } from '@sveltejs/kit';
export const match: ParamMatcher = (param) => {
return param === 'recipes' || param === 'rezepte';
};