Skip to content

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

chore: adjust billing for edge function count (#28019)

Kevin Grüneberg9d4d1369aa61
diff --git a/apps/docs/content/guides/platform/org-based-billing.mdx b/apps/docs/content/guides/platform/org-based-billing.mdx
index d18443d5212..462b9fce023 100644
--- a/apps/docs/content/guides/platform/org-based-billing.mdx
+++ b/apps/docs/content/guides/platform/org-based-billing.mdx
@@ -44,7 +44,7 @@ It is not possible to mix different plans inside a single organization. You cann
| Storage Size | 1GB | 100GB included, then $0.021 per GB | Custom |
| Monthly Active Users | 50,000 MAU | 100,000 MAU included, then $0.00325 per MAU | Custom |
| Function Invocations | 500K | 2 million included, then $2 per million | Custom |
-| Function Count | 10 | 100 included, then $10 per 100 | Custom |
+| Function Count | 25 | 500/1000 | Unlimited |
| Storage Images Transformed | Unavailable on Free Plan | 100 included, then $5 per 1000 | Custom |
| Realtime Message Count | 2 million | 5 million included, then $2.5 per million | Custom |
| Realtime Peak Connections | 200 | 500 included, then $10 per 1000 | Custom |
@@ -146,7 +146,7 @@ Here are the quotas for the Free Plan:
| Storage Space | 1GB |
| Monthly Active Users | 50,000 MAU |
| Edge Function Invocations | 500K |
-| Edge Function Count | 10 |
+| Edge Function Count | 25 |
| Realtime Message Count | 2 million |
| Realtime Peak Connections | 200 |
| Max of 2 free projects\* |
@@ -177,7 +177,7 @@ Here's the quota for your entire organization:
| Storage Size | 100GB included, then $0.021 per GB |
| Monthly Active Users | 100K MAU included, then $0.00325 per MAU |
| Function Invocations | 2 million included, then $2 per million |
-| Function Count | 100 included, then $10 per 100 |
+| Function Count | 500 included |
| Storage Images Transformed | 100 included, then $5 per 1000 |
| Realtime Message Count | 5 million included, then $2.5 per million |
| Realtime Peak Connections | 500 included, then $10 per 1000 |
diff --git a/apps/docs/content/guides/platform/spend-cap.mdx b/apps/docs/content/guides/platform/spend-cap.mdx
index 359e4135e2b..50946af1ca5 100644
--- a/apps/docs/content/guides/platform/spend-cap.mdx
+++ b/apps/docs/content/guides/platform/spend-cap.mdx
@@ -19,7 +19,6 @@ Supabase charges for certain usage line items in your organization. Those line i
- Realtime concurrent peak connections
- Realtime messages
- Edge function invocations
-- Number of Edge functions
You can view the pricing, and free quota allowance of each line item on the [pricing page](/pricing).
diff --git a/apps/studio/components/interfaces/Billing/SpendCapModal.tsx b/apps/studio/components/interfaces/Billing/SpendCapModal.tsx
index 87e9d4a895f..f8dfd9b01b7 100644
--- a/apps/studio/components/interfaces/Billing/SpendCapModal.tsx
+++ b/apps/studio/components/interfaces/Billing/SpendCapModal.tsx
@@ -145,12 +145,6 @@ const SpendCapModal = ({ visible, onHide }: SpendCapModalProps) => {
<p className="w-[25%] text-sm">2 Million</p>
<p className="w-[25%] text-sm">$2 per Million</p>
</div>
-
- <div className="flex items-center px-4 py-1">
- <p className="w-[50%] text-sm">Function count</p>
- <p className="w-[25%] text-sm">100 functions</p>
- <p className="w-[25%] text-sm">$10 per 100 functions</p>
- </div>
</div>
</div>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingBreakdown.constants.ts b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingBreakdown.constants.ts
index 97634e8bf60..26eb514fece 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingBreakdown.constants.ts
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingBreakdown.constants.ts
@@ -84,12 +84,4 @@ export const BILLING_BREAKDOWN_METRICS: Metric[] = [
category: 'Edge Functions',
unitName: 'invocation',
},
- {
- key: PricingMetric.FUNCTION_COUNT,
- name: 'Edge Function Count',
- units: 'absolute',
- anchor: 'funcCount',
- category: 'Edge Functions',
- unitName: 'function',
- },
]
diff --git a/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx b/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx
index 96bc874ff8e..22368daeb62 100644
--- a/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx
@@ -38,15 +38,6 @@ const SizeAndCounts = ({
endDate,
})
- const { data: functionCountData, isLoading: isLoadingFunctionCountData } = useOrgDailyStatsQuery({
- orgSlug,
- projectRef,
- metric: PricingMetric.FUNCTION_COUNT,
- interval: '1d',
- startDate,
- endDate,
- })
-
const chartMeta: {
[key: string]: { data: DataPoint[]; margin: number; isLoading: boolean }
} = {
@@ -60,11 +51,6 @@ const SizeAndCounts = ({
margin: 14,
data: storageSizeData?.data ?? [],
},
- [PricingMetric.FUNCTION_COUNT]: {
- isLoading: isLoadingFunctionCountData,
- margin: 0,
- data: functionCountData?.data ?? [],
- },
}
return (
diff --git a/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx b/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx
index ef3afbb64ac..ccf81bcf6ed 100644
--- a/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx
@@ -95,7 +95,7 @@ export const USAGE_CATEGORIES: CategoryMeta[] = [
},
{
key: 'sizeCount',
- name: 'Size & Counts',
+ name: 'Database & Storage Size',
description: 'Amount of resources your project is consuming',
attributes: [
{
@@ -172,17 +172,6 @@ export const USAGE_CATEGORIES: CategoryMeta[] = [
},
],
},
- {
- anchor: 'funcCount',
- key: PricingMetric.FUNCTION_COUNT,
- attributes: [{ key: PricingMetric.FUNCTION_COUNT.toLowerCase(), color: 'white' }],
- name: 'Edge Function Count',
- chartPrefix: 'Max',
- unit: 'absolute',
- description:
- 'Number of serverless functions in your project.\nBilling is based on the maximum amount of functions at any point in time throughout your billing period.',
- chartDescription: 'The data refreshes every 24 hours.',
- },
],
},
{
diff --git a/apps/studio/data/analytics/org-daily-stats-query.ts b/apps/studio/data/analytics/org-daily-stats-query.ts
index f7346831c91..8b74d5e8d30 100644
--- a/apps/studio/data/analytics/org-daily-stats-query.ts
+++ b/apps/studio/data/analytics/org-daily-stats-query.ts
@@ -24,7 +24,6 @@ export enum PricingMetric {
MONTHLY_ACTIVE_USERS = 'MONTHLY_ACTIVE_USERS',
MONTHLY_ACTIVE_SSO_USERS = 'MONTHLY_ACTIVE_SSO_USERS',
FUNCTION_INVOCATIONS = 'FUNCTION_INVOCATIONS',
- FUNCTION_COUNT = 'FUNCTION_COUNT',
STORAGE_IMAGES_TRANSFORMED = 'STORAGE_IMAGES_TRANSFORMED',
REALTIME_MESSAGE_COUNT = 'REALTIME_MESSAGE_COUNT',
REALTIME_PEAK_CONNECTIONS = 'REALTIME_PEAK_CONNECTIONS',
diff --git a/packages/shared-data/pricing.ts b/packages/shared-data/pricing.ts
index 33b7179d7e3..02d6d5a9096 100644
--- a/packages/shared-data/pricing.ts
+++ b/packages/shared-data/pricing.ts
@@ -383,16 +383,13 @@ export const pricing: Pricing = {
},
{
title: 'Number of functions',
- tooltips: {
- main: 'Billing is based on the maximum amount of functions at any point in time throughout your billing period.',
- },
plans: {
free: '10 included',
- pro: ['100 included', 'then $10 per additional 100'],
- team: ['100 included', 'then $10 per additional 100'],
- enterprise: 'Custom',
+ pro: '500 included',
+ team: '1000 included',
+ enterprise: 'Unlimited',
},
- usage_based: true,
+ usage_based: false,
},
],
},