fix(housekeeping): satisfy ase route types

This commit is contained in:
simoleo89
2026-08-26 20:52:13 +02:00
parent a9bdd6bd5d
commit 67cb4b488d
2 changed files with 20 additions and 10 deletions
@@ -11,5 +11,7 @@ export function toHousekeepingHref(
throw new Error(`invalid canonical housekeeping href: ${href}`);
}
return surface === "canonical" ? href : href.replace(/^\/ase/, "/ase-next");
return surface === "canonical"
? href
: (`/ase-next${href.slice(4)}` as `/ase-next${string}`);
}