Files
create-better-t-stack/apps/web/.open-next/cloudflare-templates/init.d.ts
2025-07-13 14:09:49 +05:30

16 lines
543 B
TypeScript

/**
* Initialization for the workerd runtime.
*
* The file must be imported at the top level the worker.
*/
/**
* Executes the handler with the Cloudflare context.
*/
export declare function runWithCloudflareRequestContext(request: Request, env: CloudflareEnv, ctx: ExecutionContext, handler: () => Promise<Response>): Promise<Response>;
declare global {
var __BUILD_TIMESTAMP_MS__: number;
var __NEXT_BASE_PATH__: string;
var __ASSETS_RUN_WORKER_FIRST__: boolean | string[] | undefined;
var __DEPLOYMENT_ID__: string;
}