UNPKG

vike

Version:

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

25 lines (24 loc) 1.29 kB
export { preparePageContextForUserConsumptionServerSide }; export type { PageContextForUserConsumptionServerSide }; import { PageContextUrlInternal } from '../../../shared/getPageContextUrlComputed.js'; import type { PageConfigRuntime } from '../../../shared/page-configs/PageConfig.js'; import type { PageConfigUserFriendlyOld } from '../../../shared/page-configs/getPageConfigUserFriendly.js'; import { PageContextBuiltInServerInternal } from '../../../shared/types.js'; import type { GlobalContextServerInternal, GlobalContextServer } from '../globalContext.js'; type PageContextForUserConsumptionServerSide = PageContextBuiltInServerInternal & PageConfigUserFriendlyOld & { urlOriginal: string; /** @deprecated */ url: string; urlPathname: string; urlParsed: PageContextUrlInternal['urlParsed']; routeParams: Record<string, string>; Page: unknown; pageId: string; _pageConfigs: PageConfigRuntime[]; is404: null | boolean; isClientSideNavigation: boolean; pageProps?: Record<string, unknown>; _globalContext: GlobalContextServerInternal; globalContext: GlobalContextServer; } & Record<string, unknown>; declare function preparePageContextForUserConsumptionServerSide(pageContext: PageContextForUserConsumptionServerSide): void;