Fastify SSR
Fastify Server Side Rendering provider for the AstroBuild Framework. This is being built out as a plugin to be used as part of the JuliKhris lowcode framework which is being build on top of AstroBuild. To leverage Data Islands, Minimal JS and Server Side Rendering.
Although you can use as adapter for AstroBuild. Currently being used for clients on Azure Windows, Azure Linux, Oracle Cloud, and AWS
Coming Soon:
- Extraction of viteFastifySSRPlugin into its own repo\vite plugin currently resides in index.ts
- Test scripts
Special thanks to @matthewp/astro-fastify; this is an extension of that adapter writing in TS with additional parameters for customization.
Authors
Installation
Install @julikhris/astro-fastify
npm install @julikhris/astro-fastify
Usage/
import adapter from "@julikhris/astro-fastify";
const useFastifyAdapter = (
clientRelative,
staticRoutes,
devRoutesApi,
productionRoutesApi,
port,
pluginHooksApi
) => {
return adapter({
clientRelative,
staticRoutes,
devRoutesApi,
productionRoutesApi,
port,
pluginHooksApi,
});
};
adapter: useFastifyAdapter(
clientRelative,
getStaticRoutes(clientRelative),
await getServerRoutes(),
pathToFileURL(resolvedServerRoutesPath),
serverPort,
pathToFileURL(resolvedServerHooksPath)
),
Documentation
Coming Soon
Support
Coming Soon
Contributing
Contributions are always welcome!
Coming Soon