
A SSG caching mechanism for NextJS to share data between getStaticPaths and getStaticProps
This project is an implementation of an idea to allow data to be shared between routes in NextJS SSG. It is a Next.js project that fetches data from Contentful at build time using Static Site Generation (SSG). The purpose of this solution is to separate the data fetching from Contentful and Next's SSG, allowing the content to be fetched upfront, cached on the file system, and reused for subsequent calls from getStaticPaths or getStaticProps.
This project provides a solution to the problem of data sharing between routes in NextJS SSG. By fetching data from Contentful at build time and caching it on the file system, it reduces the need for multiple API calls and improves the efficiency of data fetching. With the ability to separate the data fetching process from Next's SSG, it enables developers to fetch content upfront, cache it, and reuse it for subsequent calls, resulting in improved performance and a better user experience.

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.
React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components
Contentful is a headless content management system (CMS) that provides a flexible and scalable platform for creating, managing, and delivering digital content across multiple channels and devices.
ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.
TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.