diff --git a/routes/pricing.tsx b/routes/pricing.tsx index 140e138f2147..e2d4a31e59f6 100644 --- a/routes/pricing.tsx +++ b/routes/pricing.tsx @@ -169,6 +169,12 @@ export default defineRoute(async (_req, ctx) => { active: true, }); + if (data.length === 0) { + throw new Error( + "No Stripe products have been found. Please see https://github.com/denoland/saaskit#set-up-stripe-optional to set up Stripe locally and create a Stripe product.", + ); + } + return ( <>