mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## Problem Customers with an AWS spend commitment (PPA or EDP) need a clear way to buy Supabase through AWS Marketplace. Today that path is easy to miss on marketing surfaces. ## Solution - Canonical `/aws-marketplace` landing with self-serve (Pro/Team via Buy with AWS) and private-offer (Enterprise form) paths - Buy with AWS CTA: our primary `Button`, co-branded procurement URL, `partner.js`, and `data-awsmp-bwa-*` attributes - Pricing FAQ item linking to the landing page and public listing - Older blog post banner pointing at the updated path | `/aws-marketplace` | `/pricing` | Blog Post | | --- | --- | --- | | <img width="1280" height="1323" alt="Supabase on AWS Marketplace" src="https://github.com/user-attachments/assets/19318bd0-6a07-49e2-8a1f-7c2a827f790a" /> | <img width="1280" height="1323" alt="Pricing Fees Supabase" src="https://github.com/user-attachments/assets/7d3278e7-0e5f-4206-8642-d8e8450a2c79" /> | <img width="1280" height="1323" alt="88266" src="https://github.com/user-attachments/assets/e0d1b4cc-886e-4858-944a-6792af202e1b" /> | ## Review instructions 1. Open the [www preview](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/aws-marketplace) for `/aws-marketplace` 2. Confirm hero **Buy with AWS** (primary green) opens the AWS procurement URL with product/seller IDs 3. Confirm **Request a private offer** goes to the Enterprise form 4. Open [`/pricing`](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/pricing) → FAQ → “Can I purchase Supabase through AWS Marketplace?” 5. Open [`/blog/supabase-aws-marketplace`](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/blog/supabase-aws-marketplace) and confirm the banner about the updated path
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
import { ExternalLink } from 'lucide-react'
|
||
import type { ReactNode } from 'react'
|
||
import { Button } from 'ui'
|
||
|
||
import {
|
||
AWS_MARKETPLACE_LANDING_URL,
|
||
AWS_MARKETPLACE_PRODUCT_ID,
|
||
AWS_MARKETPLACE_SELLER_ID,
|
||
getBuyWithAwsProcurementUrl,
|
||
} from '@/lib/aws-marketplace'
|
||
|
||
type BuyWithAwsButtonProps = {
|
||
size?: 'tiny' | 'small' | 'medium' | 'large'
|
||
className?: string
|
||
/** Page URL AWS should return to from the co-branded procurement Cancel / breadcrumb. */
|
||
sourceUrl?: string
|
||
children?: ReactNode
|
||
}
|
||
|
||
/**
|
||
* Primary Button wired to Buy with AWS procurement + partner.js click tracking.
|
||
* Uses partner.js data attributes rather than AWS’s stock button markup.
|
||
*/
|
||
export function BuyWithAwsButton({
|
||
size = 'medium',
|
||
className,
|
||
sourceUrl = AWS_MARKETPLACE_LANDING_URL,
|
||
children = 'Buy with AWS',
|
||
}: BuyWithAwsButtonProps) {
|
||
return (
|
||
<Button
|
||
asChild
|
||
variant="primary"
|
||
size={size}
|
||
// Sizing to optically match sibling "Request a private offer" button
|
||
iconRight={<ExternalLink className="h-4! w-4!" />}
|
||
className={className}
|
||
data-awsmp-bwa-cta="BuyWithAws"
|
||
data-awsmp-bwa-seller-id={AWS_MARKETPLACE_SELLER_ID}
|
||
data-awsmp-bwa-product-id={AWS_MARKETPLACE_PRODUCT_ID}
|
||
>
|
||
<a href={getBuyWithAwsProcurementUrl(sourceUrl)} target="_blank" rel="noreferrer">
|
||
{children}
|
||
</a>
|
||
</Button>
|
||
)
|
||
}
|