Skip to content

Commit

Permalink
feat: unify the Instill AI meeting schedule link (#1619)
Browse files Browse the repository at this point in the history
Because

- unify the Instill AI meeting schedule link

This commit

- unify the Instill AI meeting schedule link
  • Loading branch information
EiffelFly authored Nov 27, 2024
1 parent d76cd51 commit 51e76ff
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions apps/console/.env
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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<React.SetStateAction<boolean>>;
plan: string;
Expand All @@ -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";
};
Expand Down
Original file line number Diff line number Diff line change
@@ -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">;
Expand Down Expand Up @@ -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"),
};
}

Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
}
},
"globalEnv": [
"NEXT_PUBLIC_INSTILL_AI_SCHEDULE_MEETING_LINK",
"NEXT_PUBLIC_GENERAL_API_VERSION",
"NEXT_PUBLIC_MODEL_API_VERSION",
"NODE_ENV",
Expand Down

0 comments on commit 51e76ff

Please sign in to comment.