export type { PageContextServer } export type { PageContextClient } export type { PageContext } export type { PageProps } import type { PageContextBuiltInServer, /* // When using Client Routing https://vite-plugin-ssr.com/clientRouting PageContextBuiltInClientWithClientRouting as PageContextBuiltInClient /*/ // When using Server Routing PageContextBuiltInClientWithServerRouting as PageContextBuiltInClient //*/ } from 'vite-plugin-ssr/types' type Page = (pageProps: PageProps) => React.ReactElement type PageProps = Record export type PageContextCustom = { Page: Page pageProps?: PageProps urlPathname: string exports: { documentProps?: { title?: string description?: string } } } type PageContextServer = PageContextBuiltInServer & PageContextCustom type PageContextClient = PageContextBuiltInClient & PageContextCustom type PageContext = PageContextClient | PageContextServer