Static Sites
Static sites are apps that produce a folder of HTML, CSS, and JavaScript files at build time with no server process required to serve them. Jetpacked detects static output automatically and serves it from Cloudflare's CDN.
What counts as static
Jetpacked treats your app as static when the detection engine determines no runtime process is needed to serve it. This includes:
- Vite SPA builds (React, Vue, vanilla)
- Astro with static output
- VuePress
- Plain HTML projects
- Any framework configured for static export
Apps that need a running server (Next.js with SSR, AdonisJS, Express, etc.) are dynamic and need either your free dynamic project allowance or a paid project plan.
How static sites are served
Static files are uploaded to Cloudflare R2 and served through a Cloudflare Worker at the edge. This means your static site is fast everywhere, with no server to manage or worry about.
Unlimited static apps
You can deploy as many static apps as you want on a free account. There is no limit on the number of static projects.
Limitations
Static sites run no server-side code. This means:
- No API routes
- No server-side rendering
- No database connections
- No environment variables at runtime (build-time env vars are supported)
If your app needs any of these, it is a dynamic app and needs either your free dynamic project allowance or a paid project plan.
Custom domains
Custom domains for static sites work differently from dynamic apps — see Custom Domains for details.