There are just 4 queries in the entire app and Apollo is probably overkill for this. React Query has the same caching and lifecycle utilities while being probably more straightforward to integrate with data fetching in Next.js.
We should probably use getStaticProps in pages to save requests to the PsychonautWiki API and also function invocations on Vercel. The wiki data doesn't update that often, and 1 day or even more should be a good revalidate period.
There are just 4 queries in the entire app and Apollo is probably overkill for this. React Query has the same caching and lifecycle utilities while being probably more straightforward to integrate with data fetching in Next.js.
We should probably use
getStaticProps
in pages to save requests to the PsychonautWiki API and also function invocations on Vercel. The wiki data doesn't update that often, and 1 day or even more should be a goodrevalidate
period.