Skip to content

SSR - static paths#570

Merged
Ebube111 merged 1 commit intostagingfrom
ssr-4
Jan 19, 2026
Merged

SSR - static paths#570
Ebube111 merged 1 commit intostagingfrom
ssr-4

Conversation

@Ebube111
Copy link
Collaborator

@Ebube111 Ebube111 commented Jan 19, 2026

Summary by CodeRabbit

  • Performance Improvements
    • Campaign pages now pre-generate during build time, resulting in faster page loads and improved reliability through enhanced error handling.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link

vercel bot commented Jan 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
potlock-next-app Ready Ready Preview, Comment Jan 19, 2026 10:56am

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 19, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

The getStaticPaths function in the campaign page route handler was updated to dynamically fetch campaigns from an external API during build time. Previously it returned empty paths; now it parses the API response, maps campaigns to route parameters using their on_chain_id, and includes comprehensive error handling.

Changes

Cohort / File(s) Summary
Dynamic campaign path generation
src/pages/campaign/[campaignId]/index.tsx
Updated getStaticPaths to fetch campaigns from API, parse payload flexibly (supporting both results and data fields), map campaigns to path params, and handle errors with fallback to blocking mode

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 Static paths were once so bare and bare,
Now campaigns dance through API air,
With on_chain_id mapped to routes,
Error-handled, with blocking shoots,
Dynamic generation blooms so fair! ✨

✨ Finishing touches
  • 📝 Generate docstrings

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Ebube111 Ebube111 merged commit f129562 into staging Jan 19, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant