On straffesites.com , every page has exactly one URL, and that URL has no trailing slash: /en/blog/website-without-cms , never /en/blog/website-without-cms/ . The site is a static Astro 7 build (Astro 7.2.8 at the time of writing) deployed on Vercel. Setting trailingSlash: 'never' looks like a one-line decision. In practice it touches five places: the Astro config, the host, the dev server, the canonical tag, and a build check.
This article walks through each layer with the code from that project, the output from real requests, and two things I got wrong. One of them is a build check that passed on every route for two months without checking anything.
1.…