diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsx index db0f773a..2a1b6583 100644 --- a/src/pages/pricing.tsx +++ b/src/pages/pricing.tsx @@ -1,4 +1,5 @@ import Link from "@docusaurus/Link"; +import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Layout from "@theme/Layout"; import React, { ReactNode, useEffect, useState } from "react"; @@ -57,6 +58,12 @@ const Feature = ({ const Pricing = () => { const [annual, setAnnual] = useState(true); + const { siteConfig } = useDocusaurusContext(); + const portalUrl = String( + siteConfig.customFields?.portalUrl ?? "https://my.easypanel.io" + ); + const checkoutUrl = (planId: string) => + `${portalUrl}/checkout?plan=${planId}&interval=${annual ? "yearly" : "monthly"}`; return (
@@ -167,13 +174,7 @@ const Pricing = () => { - +
{
- +
Buy Your License @@ -284,13 +279,7 @@ const Pricing = () => {
- +