diff --git a/apps/console/.env b/apps/console/.env index b27c6867bc..99b4be6a73 100644 --- a/apps/console/.env +++ b/apps/console/.env @@ -17,6 +17,9 @@ NEXT_PUBLIC_AMPLITUDE_KEY=9823fa6e3ff904bec67a8fc90db82fb9 NEXT_PUBLIC_CONSOLE_BASE_URL=http://localhost:3000 NEXT_PUBLIC_APP_ENV=CE +# Marketing +NEXT_PUBLIC_INSTILL_AI_SCHEDULE_MEETING_LINK="https://cal.com/patrick-sheridan-5oacrl/30min" + # Feature flag FEATURE_FLAG_WEBHOOK_ENABLED=1 FEATURE_FLAG_APPLICATION_ENABLED=0 diff --git a/packages/toolkit/src/view/catalog/components/notifications/InsufficientStorageBanner.tsx b/packages/toolkit/src/view/catalog/components/notifications/InsufficientStorageBanner.tsx index b834cbed5e..eddd5f2100 100644 --- a/packages/toolkit/src/view/catalog/components/notifications/InsufficientStorageBanner.tsx +++ b/packages/toolkit/src/view/catalog/components/notifications/InsufficientStorageBanner.tsx @@ -5,6 +5,8 @@ import { Nullable } from "instill-sdk"; import { Button, Icons, LinkButton } from "@instill-ai/design-system"; +import { env } from "../../../../server"; + type InsufficientStorageBannerProps = { setshowStorageWarning: React.Dispatch>; plan: string; @@ -28,7 +30,7 @@ export const InsufficientStorageBanner = ({ } else if (plan === "PLAN_PRO" && namespaceType === "user") { return "/settings/organizations/new"; } else if (plan === "PLAN_TEAM" && namespaceType === "organization") { - return "https://cal.com/instill-ai/30min-talk"; + return env("NEXT_PUBLIC_INSTILL_AI_SCHEDULE_MEETING_LINK"); } return "/settings/billing/subscriptions"; }; diff --git a/packages/toolkit/src/view/catalog/components/notifications/UpgradePlanLink.tsx b/packages/toolkit/src/view/catalog/components/notifications/UpgradePlanLink.tsx index 55b735ff8a..5c10804a85 100644 --- a/packages/toolkit/src/view/catalog/components/notifications/UpgradePlanLink.tsx +++ b/packages/toolkit/src/view/catalog/components/notifications/UpgradePlanLink.tsx @@ -1,6 +1,8 @@ import Link from "next/link"; import { Nullable } from "instill-sdk"; +import { env } from "../../../../server"; + type UpgradePlanLinkProps = { plan: string; namespaceType: Nullable<"user" | "organization">; @@ -31,7 +33,7 @@ export const UpgradePlanLink = ({ } else if (plan === "PLAN_TEAM" && namespaceType === "organization") { return { text: "Contact us to learn about the enterprise plan and create more storage space", - href: "https://cal.com/instill-ai/30min-talk", + href: env("NEXT_PUBLIC_INSTILL_AI_SCHEDULE_MEETING_LINK"), }; } diff --git a/turbo.json b/turbo.json index 353fb47f52..c2fb476f22 100644 --- a/turbo.json +++ b/turbo.json @@ -27,6 +27,7 @@ } }, "globalEnv": [ + "NEXT_PUBLIC_INSTILL_AI_SCHEDULE_MEETING_LINK", "NEXT_PUBLIC_GENERAL_API_VERSION", "NEXT_PUBLIC_MODEL_API_VERSION", "NODE_ENV",