From aa70661b2df4a5c7afce3c563ef9e524676bdecf Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Thu, 4 Jan 2024 14:51:01 +0530 Subject: [PATCH] fix: url changes (#66) --- turbo.json | 4 ++-- web/components/license/pro-plan-modal.tsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/turbo.json b/turbo.json index 936b6c398d..8178a65491 100644 --- a/turbo.json +++ b/turbo.json @@ -18,8 +18,8 @@ "NEXT_PUBLIC_POSTHOG_HOST", "JITSU_TRACKER_ACCESS_KEY", "JITSU_TRACKER_HOST", - "PRO_PLAN_MONTHLY_REDIRECT_URL", - "PRO_PLAN_YEARLY_REDIRECT_URL" + "NEXT_PUBLIC_PRO_PLAN_MONTHLY_REDIRECT_URL", + "NEXT_PUBLIC_PRO_PLAN_YEARLY_REDIRECT_URL" ], "pipeline": { "build": { diff --git a/web/components/license/pro-plan-modal.tsx b/web/components/license/pro-plan-modal.tsx index b75eaddc15..ca57182230 100644 --- a/web/components/license/pro-plan-modal.tsx +++ b/web/components/license/pro-plan-modal.tsx @@ -42,15 +42,15 @@ export const ProPlanModal: FC = (props) => { const [tabIndex, setTabIndex] = useState(0); const handleProPlaneMonthRedirection = () => { - if (process.env.PRO_PLAN_MONTHLY_REDIRECT_URL) { - window.open(process.env.PRO_PLAN_MONTHLY_REDIRECT_URL, "_blank"); + if (process.env.NEXT_PUBLIC_PRO_PLAN_MONTHLY_REDIRECT_URL) { + window.open(process.env.NEXT_PUBLIC_PRO_PLAN_MONTHLY_REDIRECT_URL, "_blank"); captureEvent("pro_plan_modal_month_redirection"); } }; const handleProPlanYearlyRedirection = () => { - if (process.env.PRO_PLAN_YEARLY_REDIRECT_URL) { - window.open(process.env.PRO_PLAN_YEARLY_REDIRECT_URL, "_blank"); + if (process.env.NEXT_PUBLIC_PRO_PLAN_YEARLY_REDIRECT_URL) { + window.open(process.env.NEXT_PUBLIC_PRO_PLAN_YEARLY_REDIRECT_URL, "_blank"); captureEvent("pro_plan_modal_yearly_redirection"); } };