Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLI+17 more

    Astro + Cloudflare Pages - Deploy

    by Joan Tomás Miralles

    2

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

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Set up my Astro project to deploy to Cloudflare Pages using SSR mode and GitHub Actions.

    Your agent does

    I've updated your astro.config.mjs to use the Cloudflare adapter in 'server' mode. I also created a wrangler.toml with nodejs_compat flags and a .github/workflows/deploy.yml file that handles automated builds and deployments on every push. Your SSR routes are now ready for the edge runtime.

    What you get

    Convert an SSG Astro site to a hybrid SSR site on Cloudflare.Automate multi-environment CI/CD pipelines via GitHub Actions.Fix common build errors related to nodejs_compat and environment variables.Implement edge middleware for geolocation-based redirects.

    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.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 1 month ago

    Listed1 month ago

    Creator

    Joan Tomás Miralles

    Joan Tomás Miralles

    Frequently Asked Questions

    Popular in DevOps & Deployment