Skip to content
tregix
Insights
Discovery4 min read

Sitemaps still matter, for a boring reason

A sitemap enumerates your URLs so crawlers find pages that are weakly linked or newly published, rather than discovering them by luck.

Link-following has blind spots

Crawlers find pages by following links. Anything reachable only through a search box, deep pagination, or a filter combination may never be reached at all.

A sitemap is the direct answer: here is the list, no traversal needed.

It feeds your llms.txt too

A sitemap is the natural input for generating an llms.txt: the URL set, grouped by path prefix, is most of the structure you need.

Sites without a sitemap tend to end up with a thin llms.txt, because there is nothing to build the page list from.

Generating one

In Next.js App Router this is a file, not a build step:

typescript
// app/sitemap.ts
import type { MetadataRoute } from "next";

export default function sitemap(): MetadataRoute.Sitemap {
  const now = new Date();
  return [
    { url: "https://acme.com", lastModified: now, priority: 1 },
    { url: "https://acme.com/pricing", lastModified: now, priority: 0.9 },
  ];
}

Does this apply to your site?

The free checker runs this check and eighteen others, then generates the files to fix whatever fails.

Run the checker

// ready_when_you_are

Get your store recommended by AI

Tell us about your store and what you sell. We'll show you how ChatGPT, Perplexity and Google AI see it today and what to fix first.