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.
- 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.
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.
The configuration documentation can be found here: https://friedemannsommer.github.io/astro-node-fastify/.