Using fs on an MDX based page #14877
Unanswered
samrobbins85
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wanting to add a Navbar to the top of an MDX based page. But I want to generate the links in this navbar automatically, using the fs module. However, the only way I can see to add content to an MDX based page is by wrapping it in a component in _app.js, and components can't access fs, only pages can. Is there a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions