fix(housekeeping): satisfy ase route types
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user