Skip to content
Discussion options

You must be logged in to vote

The Next docs say:

You should not fetch an API route from getStaticProps — instead, you can write the server-side code directly in getStaticProps.

https://nextjs.org/docs/basic-features/data-fetching#write-server-side-code-directly

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nihiluis
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nihiluis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants