Skip to main content
Version: Next

Cloudflare

note

Last checked with Wasp 0.26 and Cloudflare Workers (as of Apr 6, 2026).

This guide depends on external libraries or services, so it may become outdated over time. We do our best to keep it up to date, but make sure to check their documentation for any changes.

Cloudflare Workers Can't Host a Wasp App

A Wasp app is not a static site. wasp build produces a single server that serves your app's pages, its static assets and its API from one origin, and it needs a PostgreSQL database to talk to. There is no separate client bundle to upload anywhere.

Cloudflare Workers serve static assets and run code on a JavaScript runtime that isn't Node.js. They have nowhere to run your app's server, so they can't host a Wasp app on their own.

Where to Deploy Instead

Deploy your app to a provider that runs containers:

See Cloud Providers for all of our deployment guides.

You can still put Cloudflare in front of a deployed Wasp app for its CDN and DDoS protection. See Extras for more on that.