← /lab

Sitemap

This site's sitemap.xml builds itself. A new experiment appears in it, and in the /lab list, as soon as its page is deployed; nothing needs to be listed by hand.

What this build lists

Pages in sitemap.xml
PageChangesPriority
/weekly1
/labmonthly0.8
/lab/camera-translatemonthly0.6
/lab/sitemapmonthly0.6
/lab/speculation-rulesmonthly0.6
/lab/view-transitionsmonthly0.6
/lab/web-pushmonthly0.6

How it works

  1. At build time, the site reads the folders in src/app/lab. Each one with its own page file (page.tsx) is an experiment. Folders Next.js doesn't turn into a URL (private _x, groups (x), dynamic [x]) are skipped.
  2. The fixed pages (/, /lab) come first, then the experiments, minus the pages excluded on purpose.
  3. The same list feeds this sitemap and the /lab index, so the two can't disagree. Both are generated once per build: the deployed Worker has no file system to read.
  4. Entries carry no “last modified” date. The only date available is the build time, which would claim every page changed on every deploy.

Left out on purpose

  • /offline: Shown by the service worker when offline; marked noindex.
  • APIs and the share target (/api/*, /lab/camera-translate/share): they aren't pages.

robots.txt points search engines at the sitemap. The source of truth is src/app/lib/site/routes.ts.