1
2 Comments

Add a Dynamic Sitemap to Next.js Website Using Pages or App Directory

In this post, we will explore how to add a dynamic sitemap to a Next.js website using the app directory. By the end of this post, you will have a fully functional dynamic sitemap for your Next.js website.

submitted this link to Icon for group Developers
Developers
on March 11, 2023
  1. 1

    I think there is already a package next sitemap that can do the job

    1. 1

      Yeah, it's called next-sitemap, but you don't really need it in this case.

Trending on Indie Hackers
I built a tool directory that doesn't pretend every founder has the same needs User Avatar 57 comments AI helped me ship faster. Then I forgot what my product actually does. User Avatar 36 comments Drop your landing page URL. I'll use Ferguson to tell you why visitors might be leaving User Avatar 32 comments Most early-stage SaaS companies miss churn signals — here’s how to catch them early User Avatar 26 comments How I Run a 1.7M Product Search Engine at 66ms on a $0 Hosting Budget User Avatar 18 comments I thought picking a voice for my app would take a day. It rebuilt everything. User Avatar 18 comments