static-deploy

Deploy static pages to Nexu-hosted domains with Wrangler and Cloudflare Pages.

3.2k|259|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/nexu-io/nexu --skill static-deploy-nexu-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: static-deploy
Source: https://github.com/nexu-io/nexu/tree/main/skills/nexubot/static-deploy
Command: npx skills add https://github.com/nexu-io/nexu --skill static-deploy-nexu-io

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, node, wrangler, npx, and includes scripts (resource) components.

What problem does it solve?

Deploy static pages and assets to nexu.space using Wrangler + Cloudflare Pages, simplifying publishing from local workspaces without server configuration.

Core Features & Use Cases

  • Deploys any folder containing an index.html to a Nexu Pages site
  • Stages a temporary deploy, injects a _headers file for cache revalidation, and preserves source files
  • Supports first deploys and redeploys with domain setup and artifact recording

Quick Start

Identify the directory containing files to deploy (must have an index.html) and run the provided deploy script to publish it.

Frequently Asked Questions about static-deploy

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

FAQPage Schema
How do I deploy static pages to Cloudflare Pages using Wrangler?

To deploy static pages using Wrangler, you select a directory containing an index.html, derive a project slug, and invoke the deploy script to stage and publish your assets to a Nexu-hosted domain.

What is the best way to publish a static site without modifying my source files?

Publishing a static site without modifying source files is done by staging a temporary deploy and injecting a _headers file for cache revalidation, ensuring your original directory remains unmodified throughout the process.

Do I need curl and node installed to automate website publishing with this method?

Yes, you need curl and node installed, along with npx and wrangler, to automate the website publishing workflow and execute the required deployment scripts for your static assets.

How does cache revalidation work when redeploying static assets to Cloudflare Pages?

Cache revalidation during static asset redeployment works by automatically injecting a _headers file into the staged deployment, configuring caching rules without altering your original source files.

Can I use this deployment method for both first deploys and redeploys of a static site?

Yes, you can use this deployment method for both first deploys and redeploys, supporting initial domain setup and subsequent artifact recording for your static pages on Nexu-hosted domains.

Why does my static site deployment require an index.html file in the selected directory?

Your static site deployment requires an index.html file in the selected directory because the workflow derives the project slug from it and uses it as the entry point for staging the temporary deploy.