fix(housekeeping): satisfy ase route types

This commit is contained in:
Simo committed 2026-08-26 20:52:13 +02:00
1 parent a9bdd6bd5d
commit 67cb4b488d
2 files changed
+20 -10

No files matched your search

@@ -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}`);
}