getstaticprops Questions
3
Solved
I know that the topic isn't new and I found (and read) a few discussions. What I couldn't find is an answer to my still remaining question.
How do others work around the problem of not being able t...
Collusion asked 12/10, 2020 at 15:57
0
I'm trying to use NextJS to generate the sitemap of my website. But it does have a lot of links. I would like to avoid processing all the links every sitemap.xml is accessed.
I have something like ...
Crossbeam asked 12/5, 2023 at 13:0
1
I used the provided example from Vercel documentation, to fetch the data from MongoDB after every 15 seconds, but unfortunately the function doesn't work. What should I do to make it work as ...
Twoup asked 23/10, 2021 at 10:14
2
I have a doubt.. can I use a useEffect inside getStaticProps?
I'm trying to run a function inside getStaticProps... it works.. but I don't know if it is the recommended thing to do.
useEffect(() =...
Pericline asked 1/3, 2021 at 23:18
2
I am trying to create a menu component that reads the contents of the pages folder at build time. However I haven't had any success. Here is what I have tried:
import path from "path";
im...
Prude asked 1/9, 2020 at 17:9
1
© 2022 - 2024 — McMap. All rights reserved.