Skip to content

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

feat(www): include pricing FAQ in generated pricing.md (#45455)

Pamela Chia97583f079129
diff --git a/apps/www/lib/llms.ts b/apps/www/lib/llms.ts
index 8c91aaad861..4e43b2d9185 100644
--- a/apps/www/lib/llms.ts
+++ b/apps/www/lib/llms.ts
@@ -2,6 +2,7 @@ import { plans } from 'shared-data/plans'
import { pricing } from 'shared-data/pricing'
import addOnTable from '@/data/PricingAddOnTable.json'
+import pricingFaq from '@/data/PricingFAQ.json'
// ---------------------------------------------------------------------------
// Helpers
@@ -244,6 +245,20 @@ function buildFeatureComparisonSection(): string {
return lines.join('\n')
}
+// ---------------------------------------------------------------------------
+// FAQ
+// ---------------------------------------------------------------------------
+
+function buildFAQSection(): string {
+ const lines: string[] = ['## Frequently Asked Questions', '']
+
+ for (const { question, answer } of pricingFaq) {
+ lines.push(`### ${question}`, '', answer, '')
+ }
+
+ return lines.join('\n')
+}
+
// ---------------------------------------------------------------------------
// Public API
// ---------------------------------------------------------------------------
@@ -269,6 +284,7 @@ export function generatePricingContent(): string {
buildDiskSection(),
buildAddOnsSection(),
buildFeatureComparisonSection(),
+ buildFAQSection(),
'## Links',
'',
'- Pricing page: https://supabase.com/pricing',