Is there any global place in Next.js to fetch menu-items(server-side) that I can pass to my Layout component.
Since, I can't do that in index.js as if somebody directly opens different route for eg: /about then the data will not be fetch.
I tried doing that in _app by implementing it's static getInitialProps method but I'm not sure if it's a good practice and also it will disable Automatic Static Optimization in pages without Static Generation.
Any suggestion?
