astro-deployment

SkillCloud & infra

Get your Astro 7 app deployed to Cloudflare, Vercel, Netlify, or Node.js. Once added, your AI can set up the right adapter for your platform, apply ISR patterns, and configure edge middleware so the app runs where you want it.

Available today. Use it from your connected AI after setup.

After adding it, tell your AI which platform you want to deploy to and share details about your Astro 7 app, and it will take care of the setup.

Then ask your AI: use the astro-deployment skill

What your AI can do with it

  • Deploy Astro 7 apps to Cloudflare, Vercel, Netlify, or Node.js
  • Set up the deployment adapter for your chosen platform
  • Apply ISR patterns
  • Configure edge middleware

What this skill tells your AI

The instructions your AI receives, as published by fusengine/agents in plugins/astro-expert/skills/astro-deployment/SKILL.md and read by ahel’s review.

Also covers output-mode selection (static/server, per-page prerender), ISR patterns implemented via platform caching (Cloudflare KV or Vercel stale-while-revalidate, since Astro has no native ISR), and edge middleware for auth/redirects/A-B testing. Does not cover Astro DB setup itself (astro-db) or Islands hydration directives (astro-islands) beyond what's needed to pick a server adapter.

Astro Deployment

Production deployment for Astro 7 across all major platforms — Cloudflare, Vercel, Netlify, and Node.js.

Agent Workflow (MANDATORY)

Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:

  1. fuse-ai-pilot:explore-codebase - Analyze astro.config.mjs, output mode, and existing adapter
  2. fuse-ai-pilot:research-expert - Verify adapter docs via Context7/Exa for target platform
  3. mcp__context7__query-docs - Check Astro 7 adapter compatibility and breaking changes

After implementation, run fuse-ai-pilot:sniper for validation.


Overview

When to Use

  • Deploying Astro to Cloudflare Workers with D1/KV/R2 bindings
  • Configuring Vercel Serverless or Edge runtime with image CDN
  • Setting up Netlify Edge Functions
  • Running Astro as standalone Node.js server
  • Implementing ISR (Incremental Static Regeneration) patterns
  • Configuring edge middleware for auth/redirects

Adapter Matrix

PlatformPackageRuntimeNotes
Cloudflare@astrojs/cloudflare v13+workerdAstro 6: astro dev runs on workerd
Vercel@astrojs/vercelNode/EdgeImage CDN built-in
Netlify@astrojs/netlifyEdgeDeno-based edge functions
Node.js@astrojs/nodeNodeStandalone server mode

Core Concepts

Output Modes

  • output: 'static' — Full SSG, no adapter needed
  • output: 'server' — Full SSR, adapter required
  • Per-page: Mix with export const prerender = true/false

Cloudflare Astro

Astro 6 runs astro dev on workerd — same runtime as production. Enables D1, KV, R2 bindings in local dev via platformProxy. No more simulation gaps. Requires @astrojs/cloudflare v13+ and Node.js 22+.

ISR Pattern

Astro has no native ISR. Implement with platform caching: Cloudflare KV as cache layer, or Vercel's Cache-Control with stale-while-revalidate.

Skew Protection

On Vercel, enable skew protection to prevent asset mismatches between old client and new server during deployments.


Reference Guide

Concepts

TopicReferenceWhen to Consult
Cloudflarecloudflare-adapter.mdWorkers, D1, KV, R2, wrangler
Vercelvercel-adapter.mdServerless, Edge, Image CDN
Netlifynetlify-adapter.mdEdge Functions, forms
Node.jsnode-adapter.mdStandalone, Express integration
ISR Patternsisr-patterns.mdCache strategies, revalidation
Edge Middlewareedge-middleware.mdAuth, redirects, A/B testing

Templates

TemplateWhen to Use
cloudflare-setup.mdFull Cloudflare config with bindings
vercel-setup.mdVercel config with Edge/Image CDN

Best Practices

  1. Match adapter to platform early - Switching adapters mid-project is painful
  2. Cloudflare: use v13+ for Astro 7 - Required for workerd local dev
  3. Node.js 22+ for Astro 7 - Drops Node 18/20 support
  4. Per-page prerender - Mix static and SSR for optimal performance
  5. Test bindings locally - Cloudflare platformProxy enables local D1/KV/R2

Signals

GitHub stars
25
Forks
4
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
astro-deployment
Source
github.com/fusengine/agents