NextJS 15's next/font
breaks alternate header injection.
#1261
Labels
bug
Something isn't working
upstream-issue
This issue is caused by an upstream dependency (e.g. Next.js)
Description
I notice that in the NextJS 15 release candidate, the "alternate" links that should appear in the response header are missing if
next/font
is used to optimize fonts. I'm not sure whether this issue belongs to NextJS or next-intl.Verifications
Mandatory reproduction URL
https://github.com/zenzen-sol/next-reproduction-template/tree/sol/repro-001-next-15-broken
Reproduction description
Steps to reproduce:
pnpm run dev
http://localhost:3000
in a browser.✅ OK(Next 14): https://github.com/zenzen-sol/next-reproduction-template/tree/sol/repro-001-Next-14-working
🙅🏻Broken (Next 15rc + next/font): https://github.com/zenzen-sol/next-reproduction-template/tree/sol/repro-001-next-15-broken
✅ OK (Next 15rc without next/font): https://github.com/zenzen-sol/next-reproduction-template/tree/sol/repro-001-next-15-working
Expected behaviour
Both the
next-intl
andnext/font
links should be present in the response header.The text was updated successfully, but these errors were encountered: