Keep the Next.js 14 caching default of fetch

Proprietary

Next.js 15 no longer caches fetch by default. Adds cache: 'force-cache' to GET fetch calls in App Router server files that do not say how to cache, so they keep the Next.js 14 behavior. Calls with a cache or next.revalidate option, other methods, spread options and a locally declared fetch are left alone, and so are files with a dynamic, revalidate or fetchCache segment config, a next/headers import, or an unstable_noStore import from next/cache.

io.moderne.nextjs.15.fetch-cache-defaults
mod run . --recipe=io.moderne.nextjs.15.fetch-cache-defaults

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.