SSR with NextJs layouts (page dir)
So I have a shared layout in my app which looks like this
I now need some data in the header of the page which I would prefer to ssr using getServerSideProps, however these props are only passed to the Page and not to the layout.
Any ideas on how I can do this?
0 Replies