astro-node-fastify


A Node.js adapter for Astro SSR built on top of Fastify. It compresses asset and SSR responses by default and supports configurable cache headers for static assets.

Key features:

  • Build-time or runtime compression (gzip, brotli)
  • Configurable Cache-Control headers for static assets
  • Default response headers for SSR and asset routes

Available on npm as astro-node-fastify.

The configuration reference is available at friedemannsommer.github.io/astro-node-fastify.

Source code is hosted on GitHub at friedemannsommer/astro-node-fastify.