Will the sitemaps update after new static pages added without using server-sitemap.xml? #624
Unanswered
arashi-dev
asked this question in
Q&A
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I still don't understand the concept of
server-sitemap.xml
Imagine I have a page route like this:
/products/[page].tsx
and at build time I generate 3 pages but during runtime, I build 3 more, so it becomes 6 pages.|-------------- during build time ----------| |-------------- during runtime ------------|
/products/1
,/products/2
,/products/3
,/products/4
,/products/5
,/products/6
will this library automatically add those 4, 5, and 6 pages to the sitemap? or I should add them using
server-sitemap.xml
?Update:
As I understood,
next-sitemap
does not handle the runtime-added pages automatically and I must use theserver-sitemap.xml
approach beside the static-build-time approach.I wish this library would do that automatically (by just doing the same thing that it does by
next-sitemap
CLI but automatically during runtime)Beta Was this translation helpful? Give feedback.
All reactions