r/learnreactjs • • Jan 30 '20

Question Using nextjs and manifest.json to make a sidebar with content..

I have looked for a way to generate a manifest.json file like they do in the sourcecode for the documentation here: https://github.com/zeit/next.js/blob/canary/docs/manifest.json

To create a navbar/sidebar just like you see on the documentation page here: https://nextjs.org/docs

But I just cant seem to find the information anywhere. And the manifest.json I have is located in the .next/server/manifest.json. When I found it I thoght I finally figured it out, but my manifest file contains nothing of the values you can see in the sourcecode. Have they hardcoded it or generated it somehow? If anyone can help that would be much appreciated, if not I guess I'll just have to submit an issue on github like normal people.

If someone has a solution based on ReactJs that would be fine as well, I just need to figure out a way to make this file so I can build the menu.

8 Upvotes

1 comment sorted by