Use the built-in next/font

Proprietary

Next.js 13.2 built @next/font into next as next/font, and Next.js 14 removed the package. Rewrites @next/font/google and @next/font/local in import and export ... from declarations, require() and import() calls with a string literal, and jest.mock() style calls. Removing the @next/font dependency is a separate step.

io.moderne.nextjs.13.built-in-next-font
mod run . --recipe=io.moderne.nextjs.13.built-in-next-font

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