# Spec §7.1. Copied verbatim into `dist/client/robots.txt` by Vite's # `publicDir` handling; the sitemap it points at is generated next to it by # `scripts/gen-sitemap.mjs` (run from `pnpm build`). # # The `Sitemap:` line is the one place outside `SITE_ORIGIN` # (`src/content/site.ts`) that spells out the canonical host, because # robots.txt has no way to express a relative sitemap URL - the directive is # defined as taking an absolute one. `tests/build/seo.test.ts` asserts this # line equals `canonicalUrl('/sitemap.xml')`, so changing the host there and # forgetting this file fails the build tests rather than shipping a sitemap # reference to the wrong hostname. # # Nothing is disallowed on purpose. The four `noindex` URLs from §7.1 # (`/401`, `/checkout-success`, `/checkout-failure`, `/accept-invitation`), # the two member-card pages (`/card-saved`, `/card-not-saved`) and the 404 # document are kept OUT of this file deliberately: `Disallow` # stops a crawler fetching a URL, which stops it ever reading the `noindex` # in that URL's ``, and a blocked-but-linked URL can still be indexed # from the link alone. Blocking them here would defeat the meta tag rather # than reinforce it. User-agent: * Allow: / Sitemap: https://www.kjarval.com/sitemap.xml