astro-site-filesv0.5.0

Installation

Add the package to an Astro project. It has no runtime dependencies.

npm install @casoon/astro-site-files
pnpm add @casoon/astro-site-files

Requirements

Runtime Minimum Notes
Node.js 22.12.0 Same floor as Astro 6.
Astro 6.0.0 Astro 7 included. Optional peer dependency: the renderer functions work without Astro.

The package is ESM only and ships its own TypeScript declarations. Besides the main entry point there is one sub-path, @casoon/astro-site-files/rss, for serving a feed from an API route.

Replaced packages

This integration replaces @casoon/astro-crawler-policy (robots.txt and llms.txt) and @casoon/astro-sitemap (sitemap.xml and rss.xml). Both are no longer actively maintained.

Caution

Upgrading from 0.4 changes output without any config change: noindex pages leave the sitemap, hreflang alternates follow Astro’s i18n config, locale prefixes no longer lower a page’s priority, and bots with their own robots.txt group inherit the global rules. Read the changelog before upgrading.

Next: generate the first files.

Edit this page on GitHub · Docs for v0.5.0