Skip to content
Discussion options

You must be logged in to vote

You are fetching the post at runtime so the data is only available after you visit the page. Instead, you can fetch the post at build time with getStaticProps: https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Segun98
Comment options

@rafaelalmeidatk
Comment options

@Segun98
Comment options

@brianlovin
Comment options

Answer selected by Segun98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants