score:20

Accepted answer

getstaticprops can only be exported from a page. you can’t export it from non-page files.it will not work if you add getstaticprops as a property of the page component.

https://nextjs.org/docs/basic-features/data-fetching


Related Query

More Query from same tag