static params for the components - #71
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@proofkit/better-auth
@proofkit/cli
create-proofkit
@proofkit/fmdapi
@proofkit/typegen
@proofkit/webviewer
commit: |
|
Caution Review failedThe pull request is closed. WalkthroughAdds an import for getRegistryIndex and introduces generateStaticParams() to build static route parameters from the registry index, including root, per-component, and meta routes. Logs success or errors. On failure, returns only the root route. No changes to existing HTTP method handlers. Changes
Sequence Diagram(s)sequenceDiagram
participant Build as Next.js Build
participant Route as route.ts (generateStaticParams)
participant Registry as @proofkit/registry
Build->>Route: generateStaticParams()
alt Success
Route->>Registry: getRegistryIndex()
Registry-->>Route: index (list of items)
Route-->>Build: params = [[], item.name.split("/"), ["meta", ...split]]
else Error
Route-->>Build: params = [[]] (root only)
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (1)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|

Summary by CodeRabbit
New Features
Performance
Reliability