Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.96 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.96 KB

Astro Node.js Fastify

This adapter uses the Fastify web framework which allows Astro to deploy SSR sites to Node.js targets. It also compresses asset and SSR responses by default.

CI Node.js runtime support NPM Version

Table of contents

Quickstart

  1. Install via the package manager of your choice
    • Example via NPM: npm i --save-prod astro-node-fastify
    • Or via the Astro CLI: astro add astro-node-fastify
  2. Build your site
  3. Either start a preview or the standalone entry.

Usage

Install this package as a runtime dependency with the package manager of your choice. Afterward, you can configure which assets will be pre compressed, which cache headers the "public" should have, the default response headers that every SSR response should have, which compression algorithms should be available, and some more tweaks.

Configuration

The configuration documentation can be found here: https://friedemannsommer.github.io/astro-node-fastify/.