deploy

Deploy projects to Cloudflare Pages with Basic Auth protection.

2|1|Updated Sep 28, 2023
One-click install
npx skills add https://github.com/vmasrani/dotfiles --skill deploy-vmasrani
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deploy
Source: https://github.com/vmasrani/dotfiles/tree/main/maintained_global_claude/skills/deploy
Command: npx skills add https://github.com/vmasrani/dotfiles --skill deploy-vmasrani

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deploys a project to Cloudflare Pages with Basic Auth protection, enabling secure publishing and sharing of sites without exposing unauthenticated access.

Core Features & Use Cases

  • Identify common static build directories (dist, build, out, public) and deploy the correct output.
  • Automatically add a Basic Auth middleware if none exists, enforcing password protection.
  • Use Wrangler to create or update a Cloudflare Pages project and perform the deployment.

Quick Start

Run the deploy flow on your project to publish it to Cloudflare Pages with Basic Auth protection.

Frequently Asked Questions about deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a static site to Cloudflare Pages with password protection?

To deploy a static site to Cloudflare Pages with password protection, this skill locates your build output directory and deploys it using Wrangler while automatically adding a Basic Auth middleware to enforce authentication.

What build directories does the Cloudflare Pages deploy process support?

The Cloudflare Pages deployment process automatically identifies and supports common static build directories, specifically scanning for dist, build, out, and public folders to locate your project's output files.

Can I use Wrangler to add Basic Auth to a React app deployed on Cloudflare Pages?

Yes, you can use Wrangler to add Basic Auth to a React app on Cloudflare Pages. The deployment process supports React apps and automatically applies a functions/_middleware.ts file for authentication if one is absent.

Do I need to manually create authentication middleware before deploying to Cloudflare Pages?

You do not need to manually create authentication middleware before deploying. The process automatically generates and applies a Basic Auth middleware file to enforce password protection if none already exists in your project.

What is the best way to securely publish a folder of files to Cloudflare Pages?

The best way to securely publish a folder of files to Cloudflare Pages is using an automated Wrangler deployment that locates your build output and applies Basic Auth protection to prevent unauthenticated access.