UNPKG

vike

Version:

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

21 lines (20 loc) 1.03 kB
export { preparePageContextForPublicUsageServer }; export type { PageContextForPublicUsageServer }; import type { PageContextUrlInternal } from '../../../shared/getPageContextUrlComputed.js'; import type { VikeConfigPublicPageLazy } from '../../../shared/page-configs/resolveVikeConfigPublic.js'; import type { PageContextInternalServer } from '../../../types/PageContext.js'; import type { GlobalContextServerInternal } from '../globalContext.js'; type PageContextForPublicUsageServer = PageContextInternalServer & VikeConfigPublicPageLazy & { urlOriginal: string; /** @deprecated */ url: string; urlPathname: string; urlParsed: PageContextUrlInternal['urlParsed']; routeParams: Record<string, string>; Page: unknown; pageId: string; is404: null | boolean; isClientSideNavigation: boolean; _globalContext: GlobalContextServerInternal; }; declare function preparePageContextForPublicUsageServer<PageContext extends PageContextForPublicUsageServer>(pageContext: PageContext): PageContext;