Cloudflare Pages

Inngest allows you to deploy your event-driven functions to Cloudflare Pages.

Deploying to Cloudflare Pages

  1. Write your functions
  2. Serve your functions
  3. Set environment variables for your deployment

Cloudflare Pages Functions run on the Workers runtime. Enable Node.js compatibility so Inngest can use AsyncLocalStorage during function execution:

compatibility_flags = ["nodejs_compat"]
compatibility_date = "2024-09-23"

Syncing your app

After your code is deployed to Cloudflare Pages, you'll need to sync your app with Inngest. Learn how to sync your app with Inngest here.