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 copyInstalls Codify first if you don’t have it.
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-siteDeploy 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
- Installs the Node.js LTS (with nvm) and wrangler, Cloudflare's CLI.
- Logs you in to Cloudflare in the browser. No account yet? You can sign up for a free one on the same page.
- Either creates a new site (static HTML, Astro, React, Vue, Svelte, Next, Nuxt or Hono) or clones your existing repo and installs its dependencies.
- Builds and deploys it. The first time, Cloudflare asks you to pick your
workers.devsubdomain.
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…
Reviews
Write a reviewNo reviews yet. Reviews come from people who applied this template.