UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

21 lines (20 loc) 950 B
export { setGlobalContext_buildEntry } from '../node/runtime/globalContext.js'; export { route, getPagesAndRoutes }; export type { PageRoutes, PageFile, PageConfigRuntime as PageConfig }; import { route as routeInternal, type PageRoutes } from '../shared/route/index.js'; import type { PageFile } from '../shared/getPageFiles/getPageFileObject.js'; import { PageConfigRuntime } from '../shared/page-configs/PageConfig.js'; /** * Used by {@link https://github.com/magne4000/vite-plugin-vercel|vite-plugin-vercel} to compute some rewrite rules and extract { isr } configs. * * TODO/eventually: remove */ declare function getPagesAndRoutes(): Promise<{ pageRoutes: PageRoutes; pageFilesAll: PageFile[]; pageConfigs: PageConfigRuntime[]; allPageIds: string[]; }>; declare function route(pageContext: Parameters<typeof routeInternal>[0]): Promise<{ pageContextAddendum: import("../shared/route/index.js").PageContextFromRoute; }>;