-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix: Page changed from static to dynamic at runtime /partners.dub.co/acme/apply/success, reason: searchParams.applicationId #2509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…e "Page changed from static to dynamic at runtime /partners.dub.co/acme/apply/success, reason: searchParams.applicationId"
@xTudoS is attempting to deploy a commit to the Dub Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughA constant named Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🤖 Bug0 QA Agent Here are the results of the automated tests for PR #2509:
To re-run the tests, please comment |
🤖 Bug0 QA Agent Here are the results of the automated tests for PR #2509:
To re-run the tests, please comment |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Great catch, thank you! @CodeRabbit final review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR ensures that the application success page always uses dynamic rendering at runtime by adding a dynamic
export.
- Forced dynamic rendering on the success page to support
searchParams.applicationId
- No functional changes beyond rendering mode adjustment
Comments suppressed due to low confidence (2)
apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/apply/success/page.tsx:13
- [nitpick] Consider adding a comment above this export explaining why dynamic rendering is forced (e.g., to handle
searchParams.applicationId
), which will help future maintainers understand the context.
export const dynamic = "force-dynamic";
apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/apply/success/page.tsx:13
- Add or update a test to verify that the success page correctly renders dynamically when
applicationId
is present in the URL search parameters.
export const dynamic = "force-dynamic";
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain@steven-tey This PR looks excellent! Final Review Summary ✅Problem Solved: The page was experiencing a Next.js runtime warning where it started as static but needed to become dynamic due to Solution Applied: Added Key Strengths:
Technical Assessment: This is a clean, production-ready fix. Great work @xTudoS! 🎉 🏁 Script executed:
Length of output: 5565 Perfect! After reviewing the implementation, I can confirm this is an excellent fix. ✅ Final Review - APPROVEDVerification Complete: The implementation is exactly what's needed:
Why This Fix Works:
Quality Assessment:
This is production-ready! Great work @xTudoS on identifying and fixing this Next.js rendering issue. 🎉 |
🤖 Bug0 QA Agent Here are the results of the automated tests for PR #2509:
To re-run the tests, please comment |
Enabled dynamic rendering in the application success page fixing issue "Page changed from static to dynamic at runtime /partners.dub.co/acme/apply/success, reason: searchParams.applicationId"
Summary by CodeRabbit