nekochans / lgtm-cat-frontend

lgtm-cat(サービス名 LGTMeow https://lgtmeow.com) のフロントエンド用
https://lgtmeow.com
21 stars 2 forks source link

App RouterのSEO対策を実施 #294

Closed keitakn closed 5 months ago

keitakn commented 5 months ago

issueURL

https://github.com/nekochans/lgtm-cat-frontend/issues/290

関連 URL

https://lgtm-cat-frontend-git-feature-issue290seo-nekochans.vercel.app/

このPRで対応すること / このPRで対応しないこと

App Routerに最適化されたSEO対策を実施する。

Storybook の URL もしくはスクリーンショット

https://622b6c5dc31e9e003a111eb5-rhrwnngwlg.chromatic.com/

変更点概要

以下のドキュメントを参考にApp Routerから利用可能になったSEO関連の機能を利用してSEO対策を実施。

https://nextjs.org/docs/getting-started/project-structure#seo

https://nextjs.org/docs/app/building-your-application/optimizing/metadata

主に以下の内容を対応。

ドキュメント通りに画像は app/ に直接配置してメタタグに関しては各ページに Metadata を配置するようにした。

レビュアーに重点的にチェックして欲しい点

特になし

補足情報

特になし

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lgtm-cat-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2024 9:27am
codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 3.07377% with 473 lines in your changes are missing coverage. Please review.

Project coverage is 23.84%. Comparing base (149d952) to head (42f5172).

Files Patch % Lines
src/app/en/maintenance/page.tsx 0.00% 38 Missing :warning:
src/app/en/privacy/page.tsx 0.00% 38 Missing :warning:
src/app/en/terms/page.tsx 0.00% 38 Missing :warning:
src/app/en/upload/page.tsx 0.00% 37 Missing and 1 partial :warning:
src/app/maintenance/page.tsx 0.00% 38 Missing :warning:
src/app/privacy/page.tsx 0.00% 37 Missing :warning:
src/app/terms/page.tsx 0.00% 37 Missing :warning:
src/app/upload/page.tsx 0.00% 36 Missing and 1 partial :warning:
src/app/en/layout.tsx 0.00% 33 Missing :warning:
src/app/layout.tsx 0.00% 33 Missing :warning:
... and 7 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/v2.8.0 #294 +/- ## ================================================== - Coverage 24.50% 23.84% -0.66% ================================================== Files 224 225 +1 Lines 8151 8390 +239 Branches 299 300 +1 ================================================== + Hits 1997 2001 +4 - Misses 5985 6219 +234 - Partials 169 170 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.