next/font/google without subsets

perf/font-subsetserrornextjs-16correctnessperformance

Why it matters

With preload on (the default), Next.js fails the build when no subsets are given: it can't know which subset files to preload.

Fix

Add subsets: ["latin"] (the subsets your text uses), or preload: false.

Credit

  • From the Next.js team

    next/font/google needs a subset list so it knows which font files to preload; the build fails without one.

References

See it