Creating a sitemap automatically with 400 links
Answered
Common Greenshank posted this in #help-forum
Common GreenshankOP
Is there a way we can automatically create this without manually entering it all in?
Answered by B33fb0n3
yes, you can generate the sitemap via the function for the sitemap generation:
https://nextjs.org/docs/app/api-reference/functions/generate-sitemaps
let me know if that works for your case
https://nextjs.org/docs/app/api-reference/functions/generate-sitemaps
let me know if that works for your case
9 Replies
@Common Greenshank Is there a way we can automatically create this without manually entering it all in?
yes, you can generate the sitemap via the function for the sitemap generation:
https://nextjs.org/docs/app/api-reference/functions/generate-sitemaps
let me know if that works for your case
https://nextjs.org/docs/app/api-reference/functions/generate-sitemaps
let me know if that works for your case
Answer
Common GreenshankOP
this is dependant on DB but mine is all manual routes created in the file-system
@B33fb0n3
then yea, you need to write them down one by one. Even if you had a database, someone would need to fill this database. So same thing
Common GreenshankOP
oh wowo
@Common Greenshank oh wowo
but you can still leverage from the function. Instead of copy pasting everything over and over again, you can provide an array and basic things will be automatically replicated
Common GreenshankOP
got it
happy to help. Please mark solution