-
Notifications
You must be signed in to change notification settings - Fork 621
Add force-dynamic to Stripe-related pages #8288
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
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
💡 Enable Vercel Agent with $100 free credit for automated AI reviews |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
WalkthroughThe pull request adds a Next.js dynamic rendering configuration ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8288 +/- ##
=======================================
Coverage 54.89% 54.89%
=======================================
Files 919 919
Lines 60623 60623
Branches 4116 4116
=======================================
Hits 33282 33282
Misses 27240 27240
Partials 101 101
🚀 New features to boost your workflow:
|
size-limit report 📦
|

TL;DR
Added
dynamic = "force-dynamic"to Stripe-related pages to ensure they always fetch fresh data.What changed?
Added the
export const dynamic = "force-dynamic"directive to three Stripe-related pages:cancel-plan/[team_id]/page.tsxcheckout/[team_slug]/[sku]/page.tsxmanage-billing/[team_slug]/page.tsxHow to test?
Why make this change?
The
force-dynamicdirective ensures these pages are always server-rendered with fresh data on each request, which is critical for billing-related operations. This prevents caching issues that could lead to displaying outdated billing information or processing payments with stale data.Summary by CodeRabbit