Checklists

Astro implementation checklist

This checklist provides a technical verification path for Astro projects transitioning from development to a production environment, focusing on content integrity, performance optimization, and deployment stability.

Progress0 / 25 complete (0%)

Content Collections and Type Safety

0/5
  • Zod Schema Validation

    critical

    Verify that all collections in src/content/config.ts have a defined schema and that 'npm run build' passes without validation errors.

  • Slug Uniqueness Check

    critical

    Ensure no duplicate slugs exist across content collections to prevent build-time routing conflicts.

  • Frontmatter Type Alignment

    recommended

    Audit all .md and .mdx files to ensure frontmatter fields match the required Zod schema types exactly, specifically for dates and booleans.

  • Content Relationship Mapping

    recommended

    Use the reference() function in Zod schemas for related content (e.g., authors or categories) to ensure referential integrity.

  • Draft Content Filtering

    critical

    Confirm that build scripts or collection queries explicitly filter out items where 'draft: true' is present in the frontmatter.

Island Architecture and Hydration

0/5
  • Client Directive Audit

    critical

    Review all components for 'client:load', 'client:idle', or 'client:visible' and remove directives from components that do not require interactivity.

  • Component Tree Analysis

    critical

    Ensure no server-side only data (like Node.js FS modules) is passed to hydrated client components to avoid bundling errors.

  • Framework Bundle Minimization

    recommended

    Verify that only one framework (e.g., React or Svelte) is used per page unless strictly necessary to minimize JS payload.

  • Client:Only Verification

    recommended

    Confirm that 'client:only' is only used for components that rely on browser-specific APIs and that a fallback loading state is provided.

  • Shared State Management

    recommended

    Validate that shared state between islands is handled via Nano Stores or custom events rather than a heavy global provider if possible.

Asset and Image Optimization

0/5
  • Astro Image Component Usage

    critical

    Replace all standard <img> tags with the <Image /> component from 'astro:assets' for automatic WebP conversion and resizing.

  • Remote Image Patterns

    critical

    Configure 'image.remotePatterns' in astro.config.mjs to authorize external domains used for dynamic images or pSEO content.

  • LCP Optimization

    recommended

    Apply 'loading="eager"' and 'fetchpriority="high"' to images appearing in the initial viewport to improve Largest Contentful Paint.

  • Explicit Dimensions

    critical

    Define width and height attributes for all images to prevent Layout Shift (CLS) during page load.

  • SVG Optimization

    optional

    Pass SVGs through an optimizer like SVGO or use a dedicated Astro icon integration to remove unnecessary metadata.

SEO and Meta Configuration

0/5
  • Site Configuration

    critical

    Define the 'site' property in astro.config.mjs with the final production URL to enable correct absolute URL generation for sitemaps.

  • Sitemap Integration

    critical

    Install and configure '@astrojs/sitemap' and verify that the sitemap.xml is generated in the /dist folder after build.

  • Canonical URL Implementation

    critical

    Ensure every page includes a <link rel="canonical"> tag generated using Astro.url to prevent duplicate content issues.

  • OpenGraph and Meta Tags

    recommended

    Verify that dynamic meta tags (title, description, og:image) are correctly populated from content collection frontmatter.

  • Robots.txt Setup

    recommended

    Add a robots.txt file to the public/ directory that correctly points to the sitemap and defines crawl rules.

Deployment and Infrastructure

0/5
  • Adapter Configuration

    critical

    Install the correct SSR adapter (e.g., @astrojs/cloudflare, @astrojs/vercel) if using Hybrid or SSR mode.

  • Environment Variable Validation

    critical

    Define all production secrets in the hosting provider's dashboard and verify they are accessed via import.meta.env.

  • 404 Page Customization

    recommended

    Create a src/pages/404.astro file to ensure custom branding for broken links and verify it renders correctly in the build output.

  • Build Cache Verification

    optional

    Confirm that the CI/CD pipeline is configured to cache the .astro directory to speed up subsequent builds.

  • Header and Redirect Rules

    recommended

    Configure _headers or _redirects files in the public/ folder if required by your specific hosting provider (e.g., Cloudflare Pages).