Use the built-in next/font
ProprietaryNext.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-fontmod run . --recipe= io. moderne. nextjs.13. built-in-next-fontInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.