feat: add free plan to pricing page and enforce 1-site limit

Show the free tier (€0, 1 site, 5k pageviews, 6 months retention)
as the first card on the pricing page. Enforce a 1-site limit for
free plan users in the frontend.
This commit is contained in:
Usman Baig
2026-03-13 21:28:04 +01:00
parent ed80290431
commit 7ba5e063ca
3 changed files with 43 additions and 3 deletions

View File

@@ -7,9 +7,9 @@ export const PLAN_ID_SOLO = 'solo'
export const PLAN_ID_TEAM = 'team'
export const PLAN_ID_BUSINESS = 'business'
/** Sites limit per plan. Returns null for free (no limit enforced in UI). */
/** Sites limit per plan. */
export function getSitesLimitForPlan(planId: string | null | undefined): number | null {
if (!planId || planId === 'free') return null
if (!planId || planId === 'free') return 1
switch (planId) {
case 'solo': return 1
case 'team': return 5