Await the request APIs of a project on Next.js 15

Proprietary

Awaits cookies, headers, draftMode, params and searchParams in a project that already runs Next.js 15. Next.js 15 still accepts synchronous access with a warning, and Next.js 16 removes it, so the upgrade to 16 has to migrate what the upgrade to 15 left. A project below 15 gets these changes from the Next.js 14 to 15 step, so this recipe runs only where next resolves to exactly 15.

io.moderne.nextjs.migrate.nextjs-15-async-request-apis
mod run . --recipe=io.moderne.nextjs.migrate.nextjs-15-async-request-apis

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