Hello,
What are my options if I would like to fetch data (from Statamic CMS) on initial app load and store it globally so that I can access it anywhere in my app? I have now used a middleware to fetch and store in Astro.locals , but a middleware is called on every request and that seems a bit overkill for data that doesn't change much.
I couldn't find anything on the web, except for the Astro.locals.
Any help is appreciated! 🙂