From cda21e0617884a4583167aceaf007e7001dba51e Mon Sep 17 00:00:00 2001 From: Jonas Daniels Date: Mon, 20 Oct 2025 16:13:00 -0700 Subject: [PATCH] Add force-dynamic to Stripe-related pages --- .../src/app/(app)/(stripe)/cancel-plan/[team_id]/page.tsx | 2 ++ .../src/app/(app)/(stripe)/checkout/[team_slug]/[sku]/page.tsx | 2 ++ .../src/app/(app)/(stripe)/manage-billing/[team_slug]/page.tsx | 2 ++ 3 files changed, 6 insertions(+) diff --git a/apps/dashboard/src/app/(app)/(stripe)/cancel-plan/[team_id]/page.tsx b/apps/dashboard/src/app/(app)/(stripe)/cancel-plan/[team_id]/page.tsx index 7fc765d025c..0a9772af9ba 100644 --- a/apps/dashboard/src/app/(app)/(stripe)/cancel-plan/[team_id]/page.tsx +++ b/apps/dashboard/src/app/(app)/(stripe)/cancel-plan/[team_id]/page.tsx @@ -2,6 +2,8 @@ import { redirect } from "next/navigation"; import { StripeRedirectErrorPage } from "../../_components/StripeRedirectErrorPage"; import { getPlanCancelUrl } from "../../utils/billing"; +export const dynamic = "force-dynamic"; + export default async function CancelPlanPage(props: { params: Promise<{ team_id: string; diff --git a/apps/dashboard/src/app/(app)/(stripe)/checkout/[team_slug]/[sku]/page.tsx b/apps/dashboard/src/app/(app)/(stripe)/checkout/[team_slug]/[sku]/page.tsx index c7751567de3..3d684adad47 100644 --- a/apps/dashboard/src/app/(app)/(stripe)/checkout/[team_slug]/[sku]/page.tsx +++ b/apps/dashboard/src/app/(app)/(stripe)/checkout/[team_slug]/[sku]/page.tsx @@ -7,6 +7,8 @@ import { getInvoicePaymentUrl, } from "../../../utils/billing"; +export const dynamic = "force-dynamic"; + export default async function CheckoutPage(props: { params: Promise<{ team_slug: string; diff --git a/apps/dashboard/src/app/(app)/(stripe)/manage-billing/[team_slug]/page.tsx b/apps/dashboard/src/app/(app)/(stripe)/manage-billing/[team_slug]/page.tsx index 6960353c290..073f9ac5a69 100644 --- a/apps/dashboard/src/app/(app)/(stripe)/manage-billing/[team_slug]/page.tsx +++ b/apps/dashboard/src/app/(app)/(stripe)/manage-billing/[team_slug]/page.tsx @@ -2,6 +2,8 @@ import { redirect } from "next/navigation"; import { StripeRedirectErrorPage } from "../../_components/StripeRedirectErrorPage"; import { getBillingPortalUrl } from "../../utils/billing"; +export const dynamic = "force-dynamic"; + export default async function ManageBillingPage(props: { params: Promise<{ team_slug: string;