Next.js Built in Next Font

verified codemod icon

This automation transforms the module specifier @next/font/* in import statements into next/font/*.

Next.js
ts-morph
Estimated time saving
30 seconds/occurrence
Change mode
Autonomous
Applicability criteria

Next.js version is greater or equal to 13.4.

Made by
Vercel
Vercel

Usage →

Codemod CLI:

intalling vs code extension tooltip icon
codemod next/13/built-in-next-font
copy CLI command icon

Codemod VS Code extension:

intalling vs code extension tooltip icon
vs code logo
Run in VS Code

Description

This codemod transforms the module specifier @next/font/* in import statements into next/font/*.

Using the @next/font/* modules is deprecated since Next.js v13.2.

Example

Before

import { Inter } from '@next/font/google';

After

import { Inter } from 'next/font/google';

Links for more info