This repository has been archived by the owner on Sep 16, 2022. It is now read-only.
v1.0.0
No more custom
_app.jsx
setup!
Migration
- Replace imports of
import { GoogleFonts } from "next-google-fonts";
toimport GoogleFonts from "next-google-fonts";
. - Move your
href
attribute and it's value fromGoogleFontsProvider
toGoogleFonts
e.g.// components/head.tsx import * as React from "react"; import GoogleFonts from "next-google-fonts"; export const Head: React.FC = () => ( <GoogleFonts href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" /> );
- Remove the deprecated
GoogleFontsProvider
from your custom_app.jsx
or_app.tsx
. If you're not using any other contexts/providers, you may be able to remove this file altogether.