Skip to content

Support Cloudflare Pages as a deploy target for static sites #17

Description

@dannywillems

Problem

Static frontends (SvelteKit with adapter-static, Vite builds, etc.)
are currently deployed as Nginx containers on the VPS alongside
backend services. This wastes VPS resources on serving static files
that a CDN handles better for free.

Proposal

Add a Cloudflare Pages deploy target. The workflow would be:

  1. Build the static site locally (or in CI)
  2. Deploy the build output to Cloudflare Pages via the Wrangler CLI
// catapulta.toml or equivalent
[[apps]]
name = "scribe-web"
provider = "cloudflare-pages"
project = "scribe-web"
build_dir = "build"
build_cmd = "npm run build"

The deployer would:

  1. Run the build command
  2. Call wrangler pages deploy {build_dir} --project-name {project}

Cloudflare Pages provides:

  • Free tier with unlimited bandwidth
  • Global CDN
  • Automatic HTTPS
  • Custom domain support
  • Preview deployments per branch

Prerequisites

  • wrangler CLI installed
  • Cloudflare account with API token

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions