Skip to content

Commit 2107b61

Browse files
authored
docs: fix cloud pricing page (#14979)
1 parent a2c1d99 commit 2107b61

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

www/apps/cloud/components/Pricing/FeatureSections/index.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ import slugify from "slugify"
1111
import {
1212
CodePullRequest,
1313
CurrencyDollar,
14+
EnvelopeContent,
1415
ServerStack,
1516
Shopping,
1617
Users,
18+
Window,
1719
WIP,
1820
} from "@medusajs/icons"
1921
import { config } from "../../../config"
@@ -43,7 +45,7 @@ const featureLinks: Record<string, string> = {
4345
"environment variables": "/cloud/environments/environment-variables",
4446
"data import/export": "/cloud/database#importexport-database-dumps",
4547
logs: "/cloud/logs",
46-
"multiple long-lived environments": "/cloud/environments/long-lived",
48+
"unlimited long-lived environments": "/cloud/environments/long-lived",
4749
"long-lived environments (lle)": "/cloud/environments/long-lived",
4850
"preview environments (pe)": "/cloud/environments/preview",
4951
"cloud seats": "/cloud/organizations#view-organization-members",
@@ -60,15 +62,21 @@ const featureLinks: Record<string, string> = {
6062
"performance tuning": "/cloud/comparison#performance",
6163
"sla-backed uptime": "/cloud/comparison#high-availability",
6264
support: "/cloud/comparison#support",
65+
"medusa cache": "/cloud/cache",
66+
"hosting of monorepos": "/cloud/projects/prerequisites#monorepo-setup",
67+
"custom domains": "/cloud/storefront#storefront-custom-domain",
68+
"storefront previews": "/cloud/environments/preview",
6369
}
6470

6571
const featureIcons: Record<string, React.FC> = {
6672
"Commerce features": Shopping,
6773
"Development Platform": CodePullRequest,
68-
"Hosting & Deployment": ServerStack,
74+
"Build & Deploy": ServerStack,
6975
"Compute & Resources": WIP,
7076
"Organization & Billing": CurrencyDollar,
71-
"Medusa Support": Users,
77+
"Enterprise Support": Users,
78+
"Medusa Emails": EnvelopeContent,
79+
Storefronts: Window,
7280
}
7381

7482
// Helper function to render Block content (Sanity rich text)

www/apps/cloud/components/Pricing/HeroPricing/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ const HeroPricing: React.FC<HeroPricingProps> = ({ data }) => {
142142
<Link
143143
key={button._key}
144144
href={
145-
button.link.path.startsWith("https://")
145+
button.link.url ||
146+
(button.link.path?.startsWith("https://")
146147
? button.link.path
147-
: `https://medusajs.com${button.link.path}`
148+
: `https://medusajs.com${button.link.path}`)
148149
}
149150
target="_blank"
150151
rel="noreferrer"

www/apps/cloud/utils/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export type HeroPricingFields = {
1515
link: {
1616
_type: "link"
1717
label: string
18-
path: string
18+
path?: string
19+
url?: string
1920
type: string
2021
}
2122
size: string

0 commit comments

Comments
 (0)