The server log gave us this:
Error: Page changed from static to dynamic at runtime /apple-touch-icon.png, reason: headers
The site is a client's B2B catalog on Next 16.2.9 and next-intl 4.13.0 (Cache Components off), every page under app/[locale]/. Paths that aren't real routes and aren't caught by the proxy matcher fall into [locale] with the path segment as the locale. /apple-touch-icon.png, /favicon.png, /ads.txt, /manifest.json, /sitemap_index.xml, /v1 and /trpc all returned 500, for every user agent we tried.
The locale layout already called notFound() for an unknown locale, so that wasn't it. The trouble came a step later. Next resolved [locale]/not-found.tsx's generateMetadata in a separate render, one where setRequestLocale had never run, and the implicit getTranslations("errors") made next-intl read request headers inside an ISR render. That's the 500 where a 404 should have been.
Two things we tried first did nothing. A pass-through root layout with a root not-found gave the same 500 and the same stack, and a locale guard on its own changed nothing either. What worked was making the metadata take params and translate with a locale we choose:
const { locale } = await params
const t = await getTranslations({
locale: hasLocale(routing.locales, locale) ? locale : routing.defaultLocale,
namespace: "errors",
})
We also added a hasLocale guard that calls notFound() at the top of the layout's generateMetadata, before any message fetch. On a local build /favicon.png, /ads.txt, /v1 and /trpc/contacts now return 404, and the log has no more "static to dynamic" errors. The apple touch icons return 200 because we copied the site's existing 180x180 icon into public/ for iOS probes that skip the link tag.
One catch: those junk paths now render once and get cached as ISR 404s, so a scanner could grow that cache. We'd filter them in nginx or the proxy.
A curl check on the same site also showed missing pages answering 200. With Cache Components off, a loading.tsx at the [locale] segment makes every route below it stream, and the Next docs say plainly that streamed responses start with a 200. The noindex tag was there, so indexing wasn't hurt, but the status was wrong. We removed the file, and on a local clean build the missing pages now return 404.
The price: the spinner now lives only on the two leaf segments that never call notFound(), so navigation into catalog, product, portfolio and CMS pages lost it.
Curl /ads.txt on your own app and see whether you get 404 or 500.