Skip to content
Discussion options

You must be logged in to vote

@sevenc-nanashi can you share more about what you are trying to accomplish? You can't explicitly use getStaticProps within a Markdoc file, but each file generates its own getStaticProps.

For example, you can pass values via the Markdoc frontmatter, and access them in _app.js via pageProps.markdoc.frontmatter

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sevenc-nanashi
Comment options

@mfix-stripe
Comment options

Answer selected by mfix-stripe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants