(SP: 1)[FIX] temporarily disable blog categories DB fetch in locale l…#422
(SP: 1)[FIX] temporarily disable blog categories DB fetch in locale l…#422ViktorSvertoka merged 1 commit intodevelopfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe layout component's concurrent data fetching has been simplified by commenting out the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 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
Temporarily removes the blog categories database fetch from
frontend/app/[locale]/layout.tsxto stop the entire site from crashing in Netlify SSR runtime.The layout was importing
getCachedBlogCategories, which pulled in the Drizzle DB layer throughfrontend/db/index.tson every request. In the current Netlify runtime, this path fails because the DB env is not available there, so even non-blog pages were crashing. This PR replaces that global fetch with an empty categories array as a containment hotfix.Related Issue
Issue: #<issue_number>
Changes
getCachedBlogCategories(locale)call fromfrontend/app/[locale]/layout.tsxblogCategoriesarrayDatabase Changes (if applicable)
How Has This Been Tested?
Screenshots (if applicable)
Not applicable — runtime/layout hotfix only.
Checklist
Before submitting
Reviewers
Summary by CodeRabbit