Skip to content
AnswerWell geo Documentation

Research · 8 min read · Answerwell

Web Framework Deployment: Static Hosting, Full-Stack SSR, and Microfrontends

How to choose between static Pages and full-stack Workers, scaffold with C3, and deploy popular frameworks including Next.js, Astro, and microfrontends.

This page summarizes Cloudflare documentation on deploying front-end and full-stack web frameworks. Most of the material points to Cloudflare Workers as the primary place for new applications, while Cloudflare Pages remains the usual path for static sites and Git-based workflows many teams already use.

Cloudflare Pages vs Workers: which platform for a new project?

Section titled “Cloudflare Pages vs Workers: which platform for a new project?”

Cloudflare’s own product pages repeat the same guidance: for most new work, prefer Workers.

Are you sure you want to use Pages? Workers supports most Pages use cases and offers a broader feature set. It is Cloudflare’s primary platform for building applications. Start new projects with Workers.

— Cloudflare, Cloudflare Pages

Workers is described as a serverless platform for building and scaling apps on Cloudflare’s global network, with framework choice, multiple languages, and observability. Pages still fits when you want Git-connected static hosting, direct upload of build output, or a framework guide that targets Pages only (for example a static Next.js export).

Situation Typical choice in Cloudflare docs
New full-stack app (SSR, APIs, bindings) Cloudflare Workers and Workers framework guides
Mostly static site or SSG output Cloudflare Pages and Pages framework guides
Static Next.js export only Static site (Next.js on Pages)
Full-stack Next.js on the edge Next.js on Workers (vinext recommended)

Deploy frontend applications states that deploying React, Vue, Astro, or similar front ends needs builds, previews, and global distribution, and that Workers deploys to many edge locations with builds on push to GitHub or GitLab.

Project setup: C3 CLI, Git integration, and Direct Upload

Section titled “Project setup: C3 CLI, Git integration, and Direct Upload”

Pages projects can be created through three setup methods listed on Getting started:

  • C3 CLI — scaffold from the terminal (C3 CLI)
  • Git integration — connect a repository for automatic builds
  • Direct Upload — upload prebuilt assets

The C3 Framework Starter option prompts for a framework. Cloudflare documents support for:

Angular, Astro, Docusaurus, Gatsby, Hono, Next.js static exports, Nuxt, Qwik, React, Redwood, Remix, SolidStart, SvelteKit, and Vue.

When you use a framework, npm create cloudflare directly uses the framework’s own command for generating a new projects, which may prompt additional questions. This ensures that the project you create is up-to-date with the latest version of the framework, and you have all the same options when creating you project via npm create cloudflare that you would if you created your project using the framework’s tooling directly.

— Cloudflare, C3 CLI

On Workers, the same create cloudflare flow appears in guides such as Astro on Workers, for example:

npm create cloudflare@latest -- my-astro-app --framework=astro

Workers also offers templates as GitHub repositories you deploy from the dashboard.

Framework guides (Pages) list dozens of frameworks (Analog, Angular, Astro, Blazor, Docusaurus, Eleventy, Gatsby, Hugo, Jekyll, Nuxt, React, SvelteKit, Vue, and others). Individual guides follow one pattern: introduce the framework, build locally, then deploy to Pages.

Static Site Generation (SSG) apps are built ahead of time. As Static Site Generation (SSG) and custom 404 pages explains, the build produces HTML plus client assets; data is static, compiled at build time, or fetched from an API in the browser.

Examples from the cluster:

For content-heavy sites, Astro on Workers adds that Astro renders at build time or on-demand on a Worker, using “Islands” only where interactivity is needed.

A full-stack application spans client and server. Full-stack application describes builds that output HTML, static assets, and a Worker script; the Worker often fetches data at request time, SSRs the first response, then hydrates into a SPA-like experience.

Changelog material (for example Full-stack frameworks are now Generally Available on Cloudflare Workers) lists GA adapters ready for production:

  • React Router v7 (Remix)
  • Astro
  • Hono
  • Vue.js
  • Nuxt
  • Svelte (SvelteKit)
  • And more

Beta (GA expected soon): Next.js via @opennextjs/cloudflare, Angular, SolidJS (SolidStart).

You can also ship without a meta-framework:

You can “just use Vite” and React together, and build a back-end API in the same Worker. Follow our React SPA with an API tutorial to learn how.

— Cloudflare, Full-stack frameworks are now Generally Available on Cloudflare Workers

That tutorial is Tutorial - React SPA with an API.

Cloudflare Vite plugin and rendering modes

Section titled “Cloudflare Vite plugin and rendering modes”

@cloudflare/vite-plugin is documented as GA for building SPAs, static sites, SSR pages, and API routes in one toolchain. The Cloudflare Vite plugin is now Generally Available notes that React Router v7 was the first full-stack framework with full Vite plugin support, integrating the developer platform without extra build steps.

Get Started (Workers Static Assets) recommends a framework for most front-end apps, but allows deploying static or full-stack apps without one when you want minimal dependencies or full control.

Workers CI/CD framework support mirrors the long framework list (React + Vite, Astro, Next.js, Microfrontends, SvelteKit, Hono, Nuxt, and others).

Next.js on Cloudflare: vinext, OpenNext, or static Pages

Section titled “Next.js on Cloudflare: vinext, OpenNext, or static Pages”

Next.js is the most branching topic in the cluster.

For full-stack Next.js on Workers, Next.js (Workers) recommends vinext:

Cloudflare recommends vinext as the default way to run Next.js applications on Cloudflare Workers.

— Cloudflare, Next.js

Next.js (Pages overview) aligns: vinext on Workers for SSR, React Server Components, Server Actions, route handlers, and middleware; static export goes to the static site guide.

vinext is a Vite plugin that reimplements the Next.js API surface. Before production adoption, Cloudflare advises running a compatibility check:

npx vinext check

The same guide documents supported features (App Router, Pages Router, RSC, Server Actions, SSR, static export, ISR, middleware) and deploy via npx @vinext/cloudflare deploy.

Path Use when (per Cloudflare)
vinext on Workers Default for full-stack Next.js
OpenNext adapter Existing OpenNext app that cannot yet move to vinext
Static Next.js on Pages Deliberate static export to Pages

Cloudflare recommends vinext instead of OpenNext for new Next.js applications on Cloudflare Workers.

— Cloudflare, OpenNext adapter

Remix on Pages states Remix is no longer recommended for new projects; use React Router instead and see the React Router (formerly Remix) Workers guide. React Router v8 is described as a full-stack React framework integrated with the Cloudflare Vite plugin.

Analog on Pages points deployers to the Analog Workers guide for Cloudflare deployment (fullstack Angular meta-framework on Vite and Nitro).

Microfrontends on Workers: split apps, one router

Section titled “Microfrontends on Workers: split apps, one router”

Microfrontends address large teams that need independent deploys, multi-framework surfaces, or gradual migration off a monolith.

You can now deploy microfrontends to Cloudflare, splitting a single application into smaller, independently deployable units that render as one cohesive application.

— Cloudflare, Build microfrontend applications on Workers

The router Worker matches paths, forwards to microfrontends through service bindings, and rewrites HTML, CSS, and headers so assets load under each mount path. Features called out in changelog text include preloading, View Transitions API transitions, and path rewriting for assets, redirects, and cookies.

Each microfrontend may be a full framework app, a static site with Workers Static Assets, or another Worker-based app. To add one after setup, Microfrontends documents updating services in Wrangler, the ROUTES environment JSON, and redeploying the router with npx wrangler deploy.

Not every app is “framework + hosting” only:

Hono is positioned as ultrafast on Workers, combinable with a SPA via Workers Assets for a full-stack stack.

Common mistakes when picking a deploy path

Section titled “Common mistakes when picking a deploy path”
  • Remix greenfield projects — Remix on Pages directs you to React Router on Workers instead.
  • Migration from Netlify or Vercel — Migrate from Netlify to Workers and Migrate from Vercel to Workers say to follow framework-specific “deploy existing project” guides when they exist.
  • Microfrontends without router updates — Adding a Worker without updating service bindings and ROUTES leaves paths unreachable until the router is redeployed (Microfrontends).
  1. Confirm which platform your guide targets: re-read the “Are you sure you want to use Pages?” note on Cloudflare Pages and compare with Cloudflare Workers for your rendering mode (static vs SSR).

  2. Scaffold or build locally with the documented command (npm create cloudflare@latest from C3 CLI or the framework-specific Workers guide, such as Astro on Workers).

  3. For Next.js on Workers, run npx vinext check from your project directory as described in Next.js on Workers, then deploy with the guide’s npx @vinext/cloudflare deploy flow.

  4. After deploy, open the live URL from the Cloudflare dashboard (Pages or Workers) and verify assets and routes; for microfrontends, exercise each configured path after router deploy per Microfrontends.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about, and we will correct or clarify it.