import type { PageContext } from 'vike/types'; import { matchFeedSsrPath } from '../../src/ssr/feedPaths'; export { route }; /** SSR 白名单:`/`、`/board/:id`、`/post/:id`(含 `.html` 伪静态) */ function route(pageContext: PageContext) { const match = matchFeedSsrPath(pageContext.urlPathname); if (!match) return false; return { routeParams: { kind: match.kind, id: match.id } }; }