The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
add blog url button support to features page. (#43767)
Alan Daniel75857039f7ab
diff --git a/apps/www/data/features.tsx b/apps/www/data/features.tsxindex d18345bf78e..144cd8c0788 100644--- a/apps/www/data/features.tsx+++ b/apps/www/data/features.tsx@@ -98,6 +98,10 @@ export type FeatureType = {* url to docs or blog page for this feature*/docsUrl?: string+ /**+ * url to a related blog post+ */+ blogUrl?: string/*** feature metadata on its status*/@@ -478,8 +482,6 @@ Supabase Read Replicas distribute read traffic across multiple databases. Use th## Get StartedDeploy your first Read Replica in minutes from Project Settings > Infrastructure. Choose a region—same region for analytics isolation, different region for geo-distribution. Select a compute size to match your workload.--[Read blog post](https://supabase.com/blog/read-replicas-vs-bigger-compute)`,icon: Database,products: [PRODUCT_SHORTNAMES.DATABASE],diff --git a/apps/www/pages/features/[slug].tsx b/apps/www/pages/features/[slug].tsxindex 8b09d77e287..9113cdcd10b 100644--- a/apps/www/pages/features/[slug].tsx+++ b/apps/www/pages/features/[slug].tsx@@ -222,10 +222,19 @@ const FeaturePage: React.FC<FeaturePageProps> = ({ feature, prevFeature, nextFea<div className="prose prose-docs"><ReactMarkdown>{feature.description}</ReactMarkdown></div>- {feature.docsUrl && (- <Button type="default" iconRight={<ChevronRight />} asChild>- <Link href={feature.docsUrl}>Read Documentation</Link>- </Button>+ {(feature.docsUrl || feature.blogUrl) && (+ <div className="flex flex-wrap gap-2">+ {feature.docsUrl && (+ <Button type="default" iconRight={<ChevronRight />} asChild>+ <Link href={feature.docsUrl}>Read Documentation</Link>+ </Button>+ )}+ {feature.blogUrl && (+ <Button type="default" iconRight={<ChevronRight />} asChild>+ <Link href={feature.blogUrl}>Read Blog Post</Link>+ </Button>+ )}+ </div>)}<div className="w-full flex items-center justify-between text-foreground-lighter text-sm border-y py-4"><span>Share</span>