Deploy a site to Cloudflare

@codify/cloudflare-site·Codify official·v1.0.0·Updated yesterday

Put a new or existing site online for free on a workers.dev URL. No domain or server needed: Node, wrangler, login and deploy in one step.

0 appliesmacOS · Linux
Apply with CodifyCustomize a copy

Opens the template in the Codify dashboard. Applying doesn't create a setup; customizing makes a private copy you can edit.

Or from your terminal
curl -fsSL https://releases.codifycli.com/ensure.sh | bash && codify apply @codify/cloudflare-site
Installs Codify first if you don’t have it.

Deploy a site to Cloudflare

Cloudflare Workers hosts sites for free on a https://<site>.<you>.workers.dev URL. You don't need a domain or a server, and the free plan is plenty for personal sites and side projects.

What it does

  1. Installs the Node.js LTS (with nvm) and wrangler, Cloudflare's CLI.
  2. Logs you in to Cloudflare in the browser. No account yet? You can sign up for a free one on the same page.
  3. Either creates a new site (static HTML, Astro, React, Vue, Svelte, Next, Nuxt or Hono) or clones your existing repo and installs its dependencies.
  4. Builds and deploys it. The first time, Cloudflare asks you to pick your workers.dev subdomain.

It deploys only once: if a Worker with that name already exists, applying again leaves it alone.

After it's live

  • Work on it locally: npx wrangler dev
  • Ship changes: npx wrangler deploy
  • Add a custom domain later from the Cloudflare dashboard if you want one.

What gets installed

variableenum · What do you want to deploy? · new, existing · new
variableenum · Which framework should the new site use? · "static" is plain HTML, CSS and JavaScript with no build step. · static, astro, react, …
variableGit URL of your site · HTTPS URLs work without an SSH key. Ex: https://github.com/you/site.git
variableSite name · Lowercase letters, numbers and dashes. Your site will be at https://<site name>.<your subdomain>.workers.dev · my-site
variableWhere should the project live? · ~/projects/my-site
nvmlts · lts
wrangler
wrangler-auth
git-repository${{ projectRepository }} · ${{ projectDirectory }}
project-install${{ projectDirectory }}
cloudflare-worker${{ workerName }} · ${{ projectDirectory }} · ${{ framework }}
cloudflare-worker${{ workerName }} · ${{ projectDirectory }}
noticesuccess · Your site is live on Cloudflare · `${{ workerName }}` is deployed: the URL is printed above (https://${{ workerName }}.<your-su…

No reviews yet. Reviews come from people who applied this template.

Deploy a site to Cloudflare: Codify setup template | Codify