(pathname: string)
| 129 | export const Rendered = RenderedPages.get("/")!.html; |
| 130 | |
| 131 | export function normalizeRoute(pathname: string) { |
| 132 | if (pathname !== "/" && pathname.endsWith("/")) { |
| 133 | return pathname.slice(0, -1); |
| 134 | } |
| 135 | return pathname; |
| 136 | } |
| 137 | |
| 138 | export function getRenderedPage(pathname: string) { |
| 139 | return RenderedPages.get(normalizeRoute(pathname)); |
no outgoing calls
no test coverage detected