I have started on Next JS. I am using a common header.js
component and included it in _app.js
so that it gets rendered all created pages.
Now I want to make my header dynamic, that is navigation items should be fetched from db and rendered. I tried including getServerSideProps()
in _app.js
, but it is not working. What can be done here?
TIA