Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@julikhris/astro-fastify
Advanced tools
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:
Special thanks to @matthewp/astro-fastify; this is an extension of that adapter writing in TS with additional parameters for customization.
Install @julikhris/astro-fastify
npm install @julikhris/astro-fastify
//Import the adapter
// Git Repo Comin Soon!
import adapter from "@julikhris/astro-fastify";
//create a arrow function to build adapter values
// Parameters to pass:
//client relative: variable for relative path to client files example dist\client
// static routes build a colleciton of statice routes css folder etc
// example const
// getStaticRoutes = (clientRoot) => {
// console.log("getting static routes")
// return [
// {
// clientRelative:clientRoot,
// root: "assets",
// prefix: "/assets/",
// setHeaders(res) {
// res.setHeader("Cache-Control", "max-age=31536000,//immutable");
// },
// decorateReply: true,
// }
// ]
// }
// server routes to run in dev only
// server routes to run in prod
// port to listen on Azure windows will default to path as it used named pipes
// plugin hooks that attaches to Fastify onrequest hook: for example inject auth hander
const useFastifyAdapter = (
clientRelative,
staticRoutes,
devRoutesApi,
productionRoutesApi,
port,
pluginHooksApi
) => {
return adapter({
clientRelative,
staticRoutes,
devRoutesApi,
productionRoutesApi,
port,
pluginHooksApi,
});
};
// add adapter to astro.config
adapter: useFastifyAdapter(
clientRelative,
getStaticRoutes(clientRelative),
await getServerRoutes(),
pathToFileURL(resolvedServerRoutesPath),
serverPort,
pathToFileURL(resolvedServerHooksPath)
),
Coming Soon
Coming Soon
Contributions are always welcome!
Coming Soon
FAQs
ssr fastify
The npm package @julikhris/astro-fastify receives a total of 2 weekly downloads. As such, @julikhris/astro-fastify popularity was classified as not popular.
We found that @julikhris/astro-fastify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.