fix: add documentation for chaining proxy/middleware - #784
Conversation
|
Warning Review limit reached
Next review available in: 36 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe Next.js SDK documentation updates its metadata and adds guidance for composing Kinde’s ChangesNext.js middleware documentation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Deploying kinde-docs-preview with
|
| Latest commit: |
a59fd17
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://30d6b5be.kinde-docs-preview.pages.dev |
| Branch Preview URL: | https://fix-add-nextjs-middleware-ch.kinde-docs-preview.pages.dev |
tamalchowdhury
left a comment
There was a problem hiding this comment.
I updated the heading and break the large opening paragraph into simpler statements.
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/content/docs/developer-tools/sdks/backend/nextjs-sdk.mdx`:
- Line 549: Remove the unmatched closing brace immediately following the proxy
block so the Next.js SDK example parses correctly; retain the brace that closes
proxy.
- Around line 543-547: Update the public-route branch around handleI18n and
authProxy to preserve Kinde refresh handling: compose handleI18n with the
documented withAuth callback, or run the refresh flow and merge its cookie
changes into the i18n response before returning it. Keep authenticated routes
using authProxy.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f765a50c-6f8d-43b8-ac41-7b0daae7282a
📒 Files selected for processing (1)
src/content/docs/developer-tools/sdks/backend/nextjs-sdk.mdx
dtoxvanilla1991
left a comment
There was a problem hiding this comment.
LGTM, CI needs a fix still.
Description (required)
Add documentation to help users who are struggling with chaining multiple proxy/middleware
Related issues & labels (optional)
Summary by CodeRabbit
next-intlintegration.