UNPKG

@prismicio/next

Version:

Helpers to integrate Prismic into Next.js apps

27 lines (26 loc) 701 B
import type { ClientConfig } from "@prismicio/client"; declare module "@prismicio/client" { interface RequestInitLike { next?: RequestInit["next"]; } } /** @deprecated Use `@prismicio/client`'s `ClientConfig`. */ export type CreateClientConfig = ClientConfig; /** * The minimal set of properties needed from `next`'s `NextRequest` type. * * This request type is only compatible with Route Handlers defined in the `app` * directory. */ export type NextRequestLike = { headers: { get(name: string): string | null; }; url: string; nextUrl: { pathname: string; searchParams: { get(name: string): string | null; }; }; };