Mark Next.js changes that wait for the dependency upgrade

Proprietary

Adds a TODO(nextjs-upgrade) comment to next.config.* and middleware.* of a project whose next is older than the given major, because the dependency upgrade did not land and the changes of that major were not applied. For major 13 the comment goes in the .js, .jsx, .ts and .tsx files whose next/link Link still has an <a> child. Removes the comment where next has reached the major.

io.moderne.nextjs.search.mark-pending-nextjs-upgrade

Required

The Next.js major the project is being upgraded to.

mod run . --recipe=io.moderne.nextjs.search.mark-pending-nextjs-upgrade \ -P major=16

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