Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: add planId (#36500)

Alaister Young7d9bdb3abc04
diff --git a/packages/shared-data/plans.ts b/packages/shared-data/plans.ts
index 9ed27213f62..d0b7d9d61ec 100644
--- a/packages/shared-data/plans.ts
+++ b/packages/shared-data/plans.ts
@@ -1,5 +1,8 @@
+export type PlanId = 'free' | 'pro' | 'team' | 'enterprise'
+
export interface PricingInformation {
id: string
+ planId: PlanId
name: string
nameBadge?: string
costUnit?: string
@@ -18,6 +21,7 @@ export interface PricingInformation {
export const plans: PricingInformation[] = [
{
id: 'tier_free',
+ planId: 'free',
name: 'Free',
nameBadge: '',
costUnit: '/ month',
@@ -63,6 +67,7 @@ export const plans: PricingInformation[] = [
},
{
id: 'tier_pro',
+ planId: 'pro',
name: 'Pro',
nameBadge: 'Most Popular',
costUnit: '/ month',
@@ -100,6 +105,7 @@ export const plans: PricingInformation[] = [
},
{
id: 'tier_team',
+ planId: 'team',
name: 'Team',
nameBadge: '',
costUnit: '/ month',
@@ -127,6 +133,7 @@ export const plans: PricingInformation[] = [
},
{
id: 'tier_enterprise',
+ planId: 'enterprise',
name: 'Enterprise',
href: 'https://forms.supabase.com/enterprise',
description: 'For large-scale applications running Internet scale workloads.',
@@ -148,7 +155,7 @@ export const plans: PricingInformation[] = [
preface: '',
cta: 'Contact Us',
},
-]
+] as const
export function pickFeatures(plan: PricingInformation, billingPartner: string = '') {
return (