fix(homepage): guard blog category load#452
Conversation
- prevent optional blog category navigation data from crashing the localized homepage layout when database access fails - normalize the homepage site URL before building canonical and alternate metadata links
|
@OleksandrMrn is attempting to deploy a commit to the DevLovers Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe locale layout's blog-category loading is refactored into a local Layout resilience improvements
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Prevents optional blog category navigation data from crashing the localized homepage layout when database access fails.
Also normalizes
NEXT_PUBLIC_SITE_URLbefore building homepage canonical and alternate metadata links, avoiding double slashes like//uk.Related Issue
Issue: N/A
Changes
NEXT_PUBLIC_SITE_URLhas a trailing slashDatabase Changes (if applicable)
N/A, no database schema or query changes.
How Has This Been Tested?
Tested locally with the Next.js dev server:
/ukloads successfully/enloads successfullyScreenshots (if applicable)
N/A
Checklist
Before submitting
Reviewers
Summary by CodeRabbit