Repository navigation
fix(homepage): guard blog category load - #452
ViktorSvertoka merged 1 commit into
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 |
ViktorSvertoka
left a comment
There was a problem hiding this comment.
Nice work - the fix is focused and the dynamic import correctly handles both query failures and DB module initialization errors. I also verified that the localized homepage remains available without DB configuration and that canonical URLs are normalized correctly.
The Vercel failure appears to be an authorization issue rather than a code issue. Approved - thanks for improving the site’s resilience! 🙌
* fix(homepage): guard blog category load (#452) - 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 * feat(categories): add Go, GraphQL, NestJS, and NuxtJS icons and styles (#454) * chore(release): bump frontend to v1.0.13 and update changelog (#456) --------- Co-authored-by: Oleksandr <82455382+OleksandrMrn@users.noreply.github.com>
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