-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next.js 15 breaks alternate links #1442
Comments
Hello, I think it's a part of the problem enounced here (if it's not i'm sorryyy), I have this error :
With this packages : Any ideas if it's my fault ? (it's possible, I'm a junior developper) |
Hey @Wiibleyde, nope—that's a different story. You're looking for this: |
Oh okay ! Thanks ! and sorry... |
I opened a PR yesterday over at the Next.js repo to address this: vercel/next.js#73431 |
Recent canary versions of Next.js 15 as well as the stable version that was released yesterday break alternate links if you're using
next/font
ornext/image
withpriority
.This header is important for apps that use i18n routing and the
alternateLinks
feature (which is turned on by default). Failing to return this header can result in content being marked as duplicate by search engines.Upstream bug report: vercel/next.js#69000 (comment)
I'm currently waiting for this to be resolved upstream before updating the examples and the bug repro to use Next.js 15.
As a workaround, you can use a sitemap to instruct search engines about multiple variants of your pages.
The text was updated successfully, but these errors were encountered: