Docs
/

Serverless Sites

Serverless Sites

Connect a repository and your website is served from more than 330 locations, with no bandwidth bill.

A Serverless Site is built from your repository and served from more than 330 locations, from whichever is closest to each visitor. Bandwidth is unlimited and free; you pay for requests and the CPU time spent answering them. See Pricing.

How it works

  1. Connect the repository, as for an app in the Quickstart.
  2. Dcubix detects the framework, builds the site and deploys it.
  3. After that, every push goes live on its own.

A new site’s address can answer 404 for up to two minutes after its first deploy, while it spreads to every location.

Supported frameworks

Static and single-page apps

Framework Detected by
Plain HTML, CSS and JavaScript index.html, with no build step
Vite: React, Vue, Svelte, Solid, Preact vite
Create React App react-scripts
Vue CLI @vue/cli-service
Angular, browser build @angular/core
Gatsby, Docusaurus, VitePress, Eleventy Their package
Next.js with output: 'export' next and its config
Nuxt generate, Astro static, SvelteKit adapter-static, Qwik static, Analog static: true The framework’s config
React Router or Remix with ssr: false Its config

Server-rendered

Astro, SvelteKit, Nuxt, SolidStart, Analog and TanStack Start are set up for you at build time. React Router v7 works when @cloudflare/vite-plugin is already in the repository.

APIs

  • Hono, when no frontend framework is detected.
  • Any repository with a wrangler config naming main: itty-router, H3, tRPC, oRPC, hand-written Workers, or a Vite app with a Hono API.

Bindings other than variables and static assets fail the build.

When to use an app instead

These need a long-running server, and are refused as sites with a message to create an app instead:

  • Next.js with server rendering
  • React Router v7 without @cloudflare/vite-plugin, and Remix before v7
  • Qwik City with server rendering
  • Astro, SvelteKit or Nuxt configured for a Node adapter or another platform
  • Hono on @hono/node-server, and any other Node server

Hugo, Jekyll, MkDocs and Zola aren’t supported yet: the build has no Go, Ruby, Python or Rust.