feat: OGP Generation #84
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes multiple changes to improve error handling, metadata generation, and version updates. The most important changes include updating the version in
package.json, enhancing error responses in API routes, adding metadata generation for club pages, and refining thegetClubByIdfunction.Version Update:
package.json: Updated version from2.1.14to2.2.0-alpha.1.Error Handling Improvements:
src/app/api/clubs/[id]/route.ts: Enhanced error responses to include status text in the JSON response. (src/app/api/clubs/[id]/route.tsL13-R17)src/lib/server/club.ts: ImprovedgetClubByIdfunction to handle401 Unauthorizedand404 Not Foundstatuses more accurately.Metadata Generation:
src/app/clubs/[...slug]/page.tsx: Added agenerateMetadatafunction to dynamically generate metadata based on the club page and user session. (src/app/clubs/[...slug]/page.tsxL2-R73)Code Cleanup:
src/components/clubPage/main.tsx: Removed unused imports and theUpdateMetadatacomponent from theClubcomponent. [1] [2]