Skip to content

Conversation

@yuito-it
Copy link
Member

This pull request includes several updates to enhance the handling of metadata, improve error responses, and update dependencies. The most important changes include adding metadata generation for club pages, improving error responses in the API route, and updating the package version.

Metadata Handling Improvements:

  • src/app/clubs/[...slug]/page.tsx: Added generateMetadata function to dynamically generate metadata based on the club's data and user session. This includes handling different statuses (401, 403, 404) and setting appropriate metadata for the club pages. (src/app/clubs/[...slug]/page.tsxL2-R73)

Error Response Enhancements:

Dependency and Version Updates:

  • package.json: Updated the package version from 2.1.14 to 2.2.0-alpha.1.

Code Simplification:

Error Handling in Server Logic:

  • src/lib/server/club.ts: Enhanced error handling in the getClubById function to return "unauthorized" for 401 status and "notfound" for 404 status.

Yuito Akatsuki (Tani Yutaka) and others added 9 commits February 21, 2025 22:01
* Improve club data retrieval and API authentication handling (#74)

* ♻️ クラブ一覧のデータ取得を改善し、非同期処理を統合

* API認証処理を改善し、セッションがない場合にAPIキーからメールアドレスを復号化してセッションを設定

* ♻️ クラブ検索の非同期処理を改善

* デフォルト値の設定

* クリーンアップ

* ワークフローのブランチ設定を追加し、sandboxおよびdevブランチでのプルリクエストとプッシュをサポート

* GitHub Actionsを活用したタグワークフローを追加 (#75)
@yuito-it yuito-it merged commit fbf75ac into main Feb 21, 2025
9 checks passed
@github-actions
Copy link

🚀 Preview Deployment

Preview Deployment

yuito-it added a commit that referenced this pull request Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants