FAQ

Everything you need to know about jeasx

Is there something like a context object similar to React?

Yes, jeasx includes the fastity-request-context by default. You can populate the request context in an endpoint (e.g., a guard):

import { requestContext } from "@fastify/request-context";

export default function RootGuard({ request, reply }) {
  requestContext.set("date", new Date());
}

Later, you can access the context in any server-side code of your project:

import { requestContext } from "@fastify/request-context";

function CurrentDate() {
  return requestContext.get("date").toISOString();
}
Is it possible to use SASS/SCSS?

Certainly! Please check out the GitHub repository of this website to see how things should be wired.

What are the hosting options for a jeasx project?

Jeasx provides two different hosting modes tailored to meet your specific needs: traditional hosting on a node server or a serverless approach. For effortless node-based hosting, I highly recommend a platform like Railway , which seamlessly operates jeasx without the need for additional configurations. If you prefer a serverless approach, Vercel is the perfect fit, where jeasx provides the necessary configurations out of the box.