astro-node-fastify
v0.1.1
Published
Astro Fastify integration for Node.js
Downloads
215
Readme
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.
Table of contents
Quickstart
- 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
- Example via NPM:
- Build your site
- 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/.