Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

298 B
Raw Blame
import { createContext } from 'react-router';

export interface WorkerExecutionContext {
  passThroughOnException: () => void;
  waitUntil: (promise: Promise<unknown>) => void;
}

export const cloudflareContext = createContext<{
  ctx: WorkerExecutionContext;
  env: Record<string, unknown>;
}>();