how to create sitemap with getStaticProps #570
christianMiguez
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I noticed that the sitemap needs getServerSideProps to recreate a sitemap. I can't use it because the current business requires an export version of the project.
So I tried the default method to recreate a new one, but the
lastMod
field always shows the current date.How can I set the lastMod with a previously
fetched
data from an api? Ideally I have all the pageslastMod
from getStaticProps, but I don't know how can I use itBeta Was this translation helpful? Give feedback.
All reactions