UNPKG

@cloudflare/next-on-pages

Version:

`@cloudflare/next-on-pages` is a CLI tool that you can use to build and develop [Next.js](https://nextjs.org/) applications so that they can run on the [Cloudflare Pages](https://pages.cloudflare.com/) platform (and integrate with Cloudflare's various oth

15 lines 778 B
/// <reference types="@cloudflare/workers-types" /> import 'server-only'; declare global { interface CloudflareEnv { } } type RequestContext<CfProperties extends Record<string, unknown> = IncomingRequestCfProperties, Context = ExecutionContext> = { env: CloudflareEnv; cf: CfProperties; ctx: Context; }; export declare function getOptionalRequestContext<CfProperties extends Record<string, unknown> = IncomingRequestCfProperties, Context = ExecutionContext>(): undefined | RequestContext<CfProperties, Context>; export declare function getRequestContext<CfProperties extends Record<string, unknown> = IncomingRequestCfProperties, Context = ExecutionContext>(): RequestContext<CfProperties, Context>; export {}; //# sourceMappingURL=getRequestContext.d.ts.map