I last wrote about how to create a sitemap for a website in your NextJS project. In this blog, I will explain how you can automate the process of creating a sitemap using the next-sitemap package.
In previous blog, we created a sitemap manually by writing the XML code for the sitemap. But this article will focus on automating the process of creating a sitemap.
Link to the previous blog: and its the most popular package for generating sitemaps in NextJS with over 3.4k stars on website, I dont want to include the /blank/* like
Conclusion
In this blog, I explained how to automate the process of creating a sitemap using the next-sitemap package. I also explained how to customize the sitemap.xml file as per your requirements. I hope you found this blog helpful. But if next-sitemap does not allow you to customization you need, you can always create the sitemap manually as explained in the on custom postbuild script.
Get in touch
| Platform | Handle |
|---|---|
| Youtube | |
| Github | @thesohailjafri |
SOCIAL SHARE CARD GENERATOR