# Astro + Cloudflare Pages - Deploy

> Automate the complete deployment of Astro projects on Cloudflare Pages: configuration, CI/CD with GitHub Actions, edge functions, SSL domains, and SSR error resolution.

Astro + Cloudflare Pages - Deploy is a paid AI agent skill on Agensi by Joan Tomás Miralles, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Joan Tomás Miralles](https://www.agensi.io/creators/joan-tom-s-miralles)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-07-02
- Security: scan passed (2026-10-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/astro-cloudflare-pages-deploy
- Tags: devops, astro, cloudflare-pages, deployment, github-actions, ssr, wrangler

## About this skill

Astro Deployment Skill

### Deploy your Astro project on Cloudflare Pages

            A complete deployment guide for **Astro 5+** on
            **Cloudflare Pages**, covering everything from
            `astro add cloudflare` to production-ready CI/CD,
            Edge Functions, custom domains, and deployment troubleshooting.

#### Included in this Skill

##### Main SKILL.md

SSG, SSR and Hybrid decision guide with a complete quick start.

##### Deployment Checklist

More than 20 validation steps covering build, deployment and production.

##### GitHub Actions

Ready-to-use CI/CD workflows with automatic deployments and preview environments.

##### Troubleshooting

Solutions for adapter issues, SSR errors, CSP, redirects and common production problems.

##### Edge Functions

Authentication, KV rate limiting, A/B testing and geolocation examples.

##### Domains & SSL

DNS configuration, HTTPS, redirects and recommended security headers.

##### Deployment Script

Automated deployment validation with a complete six-step verification process.

##### Environment Validator

Node.js script to verify required environment variables before deployment.

##### Configuration Examples

Production-ready `astro.config.mjs` and `wrangler.toml` examples.

#### Technology Stack

- Astro 5+

- Cloudflare Pages

- Wrangler

- GitHub Actions

- Tailwind CSS

- TypeScript

- SSR

- Hybrid

#### Who is this for?

- Developers deploying Astro applications to Cloudflare Pages.

- Teams migrating from Vercel or Netlify.

- Projects using SSR, authentication or Edge Functions.

#### Time Saved

- 2–5 hours of Cloudflare documentation.

- 1–3 hours configuring GitHub Actions.

- 30–60 minutes per deployment issue.

- DNS and SSL configuration completed in minutes.

## Requires

- astro
- Node.js
- Wrangler

## Known limitations

- Requires Cloudflare account and Wrangler CLI.
- No support for Cloudflare Workers (advanced mode) legacy configurations.
- GitHub Actions require repository secret permissions.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Astro + Cloudflare Pages - Deploy skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific deployment problems does this skill solve for Astro developers?

This skill provides a comprehensive automation framework to handle the entire deployment lifecycle of Astro 5+ projects on Cloudflare Pages, solving common issues with SSR configuration, Edge Functions, and CI/CD pipeline setup.

### Which versions of Astro and rendering modes are supported?

This skill is optimized for Astro 5+ and supports Static Site Generation (SSG), Server-Side Rendering (SSR), and Hybrid output modes using the official Cloudflare adapter.

### What technical assets are included in the purchase?

You receive a complete deployment toolkit including production-ready GitHub Actions workflows, a 20-step validation checklist, environment variable validators, and pre-configured wrangler.toml and astro.config.mjs examples.

### Does this skill handle advanced Cloudflare features like Edge Functions and KV?

Yes, it includes specialized troubleshooting guides and configuration examples for Edge Functions, covering advanced use cases like KV rate limiting, geolocation, and A/B testing.

### Which AI agents or IDEs can I use this skill with?

This skill is compatible with any AI agent capable of processing Markdown-based instructions and executing Node.js-based scripts, such as Windsurf, Cursor, or GitHub Copilot Workspace.

### How does the skill help verify that my production environment is secure?

The package includes an environment validator script and a six-step deployment verification process to ensure your DNS, SSL, and security headers are correctly configured before you go live.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
