why getStaticProps function not working. even inside a valid page.
this is folder structure with target file enter image description here
The console inside getStaticProps() does not print anything & the console inside Home() prints "undefined".
why getStaticProps function not working. even inside a valid page.
this is folder structure with target file enter image description here
The console inside getStaticProps() does not print anything & the console inside Home() prints "undefined".
getStaticProps()
is not works with app
directory. In app directory every every thing will be server-side rendering.