-
Notifications
You must be signed in to change notification settings - Fork 0
Chore/next-sitemap #29
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๐ก Codex Review
Here are some automated review suggestions for this pull request.
โน๏ธ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with ๐.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // canonical ๋ฐ ์ธ์ด๋ณ hreflang | ||
| alternates: { | ||
| canonical: "/", // => https://myplanmate.vercel.app/ | ||
| languages: { | ||
| ko: "/ko", // => https://myplanmate.vercel.app/ko | ||
| en: "/en", // => https://myplanmate.vercel.app/en | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid global canonical/hreflang pointing to only the home page
The new alternates block in the root layout sets canonical: "/" and fixed language URLs for /ko and /en. Because root layout metadata is inherited by every route unless explicitly overridden, all nonโhome pages will now emit <link rel="canonical" href="https://myplanmate.vercel.app/"> and hreflang links to /ko and /en, regardless of the current path. This causes search engines to treat every page as a duplicate of the home page and drop the correct localized versions from the index unless each page defines its own metadata. Consider removing the global canonical/hreflang or generating them per route instead.
Useful? React with ๐ย / ๐.
๐ Pull Request
๐ PR ์ ํ
๐ ๋ณ๊ฒฝ ์ฌํญ
next-sitemap ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ค์นํด์ SEO ๊ธฐ๋ฅ์ ๋์
๐ธ ์คํฌ๋ฆฐ์ท
๐ง ๊ด๋ จ ์ด์
๐ ๏ธ ์ต์ข ๋ฐฐํฌ ์ ๊ฒ ๋ฆฌ์คํธ
โ ์ต์ข ๋ฐฐํฌ ์ ๊ฒ ๊ฒฐ๊ณผ