feat: Enhance SEO with dynamic metadata generation#76
Conversation
- Add new SEO utility function `generatePageMeta()` for flexible metadata configuration - Update layout and home page to use dynamic metadata generation - Add default Open Graph image for improved social sharing - Centralize SEO configuration with base metadata settings
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request modifies the metadata handling for web pages. In the home page file, a static metadata export was removed, while the layout file now calls a dynamic metadata generator instead of using hardcoded values. Additionally, a new SEO utility file has been added which defines constants and a function to generate comprehensive metadata. These changes shift metadata management from static definitions to a function-based, dynamic approach. Changes
Sequence Diagram(s)sequenceDiagram
participant Browser
participant Layout as Layout.tsx
participant SEO as seo.tsx (generatePageMeta)
Browser->>Layout: Request page
Layout->>SEO: Call generatePageMeta({ url: "/" })
SEO-->>Layout: Return dynamic metadata
Layout-->>Browser: Serve page with generated metadata
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
generatePageMeta()for flexible metadata configurationSummary by CodeRabbit
New Features
Refactor