drupflare/worker - v1.0.0
    Preparing search index...

    Variable default

    default: {
        fetch(request: Request, env: SiteWorkerEnv): Promise<Response>;
        scheduled(
            event: ScheduledController,
            env: SiteWorkerEnv,
            ctx: ExecutionContext,
        ): Promise<void>;
    }

    Type Declaration

    • fetch: function
    • scheduled: function
      • Cron entry point for the warm window.

        A Cron Trigger is the right driver on the free plan: it costs no visitor request, and the window it opens amortises one boot across an entire queue drain. WINDOW_SITES is a comma list because one Worker serves many sites and each has its own object.

        Parameters

        • event: ScheduledController
        • env: SiteWorkerEnv
        • ctx: ExecutionContext

        Returns Promise<void>