Anyone know how i can create a dynamic sitemap with all possible hrefs that i have linked on my web
Answered
Common Greenshank posted this in #help-forum
Common GreenshankOP
so i have routes that are dynamic
Answered by B33fb0n3
you can use this function to generate static dynamic parts of your app: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap#generating-a-sitemap-using-code-js-ts
With that you can generate all your hrefs
With that you can generate all your hrefs
4 Replies
@Common Greenshank so i have routes that are dynamic
you can use this function to generate static dynamic parts of your app: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap#generating-a-sitemap-using-code-js-ts
With that you can generate all your hrefs
With that you can generate all your hrefs
Answer
@Common Greenshank solved?
OP, use /remove-post-answer if that was not the answer to the question
@joulev