Unverified Commit 0305d0cb authored by Hannes Bornö's avatar Hannes Bornö Committed by GitHub

Docs: built-in-next-font codemod (#46301)

Add `built-in-next-font` to the codemods page.

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm build && pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
Co-authored-by: 's avatarJimmy Lai <laijimmy0@gmail.com>
parent 884dacc6
......@@ -17,6 +17,24 @@ Codemods are transformations that run on your codebase programmatically. This al
- `--dry` Do a dry-run, no code will be edited
- `--print` Prints the changed output for comparison
## Next.js 13.2
### `built-in-next-font`
This codemod uninstalls `@next/font` and transforms `@next/font` imports into the built-in `next/font`.
For example:
```jsx
import { Inter } from '@next/font/google'
```
Transforms into:
```jsx
import { Inter } from 'next/font/google'
```
## Next.js 13
### `new-link`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment