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 Was Picking the Wrong SaaS Tools for Two Years. Here's the Mistake I Finally Figured Out. User Avatar 111 comments Drop your landing page URL. I'll use Ferguson to tell you why visitors might be leaving User Avatar 66 comments Most early-stage SaaS companies miss churn signals — here’s how to catch them early User Avatar 31 comments Why Remote Teams Stop Talking (And Don't Even Notice It) User Avatar 23 comments How I Run a 1.7M Product Search Engine at 66ms on a $0 Hosting Budget User Avatar 19 comments I thought picking a voice for my app would take a day. It rebuilt everything. User Avatar 18 comments