astro

Build Astro 6 apps with React islands on Cloudflare Workers.

129|25|Updated Nov 12, 2024
One-click install
npx skills add https://github.com/one-ie/one --skill astro-one-ie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astro
Source: https://github.com/one-ie/one/tree/main/.claude/skills/astro
Command: npx skills add https://github.com/one-ie/one --skill astro-one-ie

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build fast, scalable Astro 6 sites on Cloudflare Workers by integrating React islands and the official Cloudflare adapter, enabling clear SSR vs prerender decisions and edge-optimized deployments.

Core Features & Use Cases

  • SSR with React islands on Cloudflare Workers using the Astro v13 adapter.
  • Per-page prerender control to balance static vs dynamic content.
  • Cloudflare bindings and assets integration for edge deployments and API routes.
  • Flexible deployment patterns that support server-rendered pages, static shells, and API surfaces.

Quick Start

Set up a new Astro 6 site on Cloudflare Workers with React islands and start the development server to preview the edge deployment.

Frequently Asked Questions about astro

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

FAQPage Schema
How do I deploy Astro 6 apps to Cloudflare Workers with React islands?

Deploy Astro 6 apps to Cloudflare Workers by integrating the official Cloudflare adapter to enable server-side rendering with React islands and edge-optimized deployments.

What's the best way to control prerendering for individual Astro pages on edge workers?

The best way to control prerendering on edge workers is using per-page prerender directives in Astro 6, allowing you to balance static versus dynamic content for Cloudflare Workers deployments.

Does the Astro Cloudflare adapter support hybrid output management for API routes?

Yes, the Astro Cloudflare adapter supports hybrid output management, enabling you to combine server-rendered pages, prerendered shells, and API routes within a single Cloudflare Workers deployment.

Why does my Astro Cloudflare Worker exceed bundle size limits?

Your Astro Cloudflare Worker might exceed bundle size limits due to strict bundle-size rules; enforcing per-page prerender control and hybrid output management helps keep the worker bundle under required limits.