2

    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.

    Updated Jul 2026
    Instant install
    Claude Code

    $9

    · or 45 credits

    30-day refund guarantee

    Secure checkout via Stripe

    Included in download

    • Convert an SSG Astro site to a hybrid SSR site on Cloudflare.
    • Fix common build errors related to nodejs_compat and environment variables.
    • terminal, file_read, network automation included
    • Ready for Claude Code
    • Instant install

    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.

    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.

    Use Cases

    • 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.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Read Files
    Network Access
    Environment Variables

    Allowed Hosts

    tusitio.com
    preview.tusitio.pages.dev
    xxx.supabase.co
    www.tusitio.com
    mi-proyecto.pages.dev
    staging.mi-proyecto.pages.dev
    42-pr-preview.mi-proyecto.pages.dev
    docs.astro.build
    developers.cloudflare.com
    %2A.supabase.co

    Claude Code, Cursor, Windsurf, Aider, Cline

    Frequently Asked Questions

    $9