Skip to content

Commit 46e5949

Browse files
authored
Fix verify this action (#619)
* Fix verify this action * Use environment variable for dashboard * Delete arcade-account-link.tsx
1 parent 5a46099 commit 46e5949

File tree

11 files changed

+32
-9
lines changed

11 files changed

+32
-9
lines changed

app/_components/analytics.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { cn } from "@arcadeai/design-system/lib/utils";
33
import Link from "next/link";
44
import { usePostHog } from "posthog-js/react";
5+
import { getDashboardUrl } from "./dashboard-link";
56

67
export type LinkClickedProps = {
78
linkLocation: string;
@@ -25,7 +26,7 @@ export const SignupLink = ({
2526
return (
2627
<Link
2728
className={cn("text-primary", className)}
28-
href={"https://api.arcade.dev/signup"}
29+
href={getDashboardUrl("register")}
2930
onClick={() => trackSignupClick(linkLocation)}
3031
>
3132
{children}

app/_components/dashboard-link.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import Link from "next/link";
2+
3+
const DASHBOARD_BASE_URL =
4+
process.env.NEXT_PUBLIC_DASHBOARD_URL || "https://api.arcade.dev";
5+
6+
export const getDashboardUrl = (path = "") =>
7+
path
8+
? `${DASHBOARD_BASE_URL}/dashboard/${path}`
9+
: `${DASHBOARD_BASE_URL}/dashboard`;
10+
11+
type DashboardLinkProps = {
12+
path?: string;
13+
children?: React.ReactNode;
14+
};
15+
16+
export const DashboardLink = ({
17+
path = "",
18+
children = "Arcade account",
19+
}: DashboardLinkProps) => <Link href={getDashboardUrl(path)}>{children}</Link>;

app/en/home/build-tools/call-tools-from-mcp-clients/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Configure your MCP clients to call tools from your MCP server.
1616

1717
<GuideOverview.Prerequisites>
1818

19-
- [Arcade account](https://api.arcade.dev/signup)
19+
- <DashboardLink path="register" />
2020
- [Arcade CLI](/home/arcade-cli)
2121
- [An MCP Server](/home/build-tools/create-a-mcp-server)
2222
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)

app/en/home/build-tools/create-a-tool-with-auth/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Create and use an MCP tool that requires OAuth to access Reddit, prompting users
1616

1717
<GuideOverview.Prerequisites>
1818

19-
- [Arcade account](https://api.arcade.dev/signup)
19+
- <DashboardLink path="register" />
2020
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)
2121
- [Create an MCP Server](/home/build-tools/create-a-mcp-server)
2222

app/en/home/build-tools/create-a-tool-with-secrets/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Build an MCP tool that can read a secret from Context and return a masked confir
1616

1717
<GuideOverview.Prerequisites>
1818

19-
- [Arcade account](https://api.arcade.dev/signup)
19+
- <DashboardLink path="register" />
2020
- [Arcade CLI](/home/quickstart)
2121
- [An MCP Server](/home/build-tools/create-a-mcp-server)
2222
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)

app/en/home/build-tools/organize-mcp-server-tools/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Learn best practices for organizing your MCP server and tools, how to import too
1616

1717
<GuideOverview.Prerequisites>
1818

19-
- [Arcade account](https://api.arcade.dev/signup)
19+
- <DashboardLink path="register" />
2020
- [An MCP Server](/home/build-tools/create-a-mcp-server)
2121
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)
2222

app/en/home/deployment/on-prem-mcp/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An on-premises MCP server deployment allows you to execute tools in your own env
1616

1717
<GuideOverview.Prerequisites>
1818

19-
- [Arcade account](https://api.arcade.dev/signup)
19+
- <DashboardLink path="register" />
2020
- [Arcade CLI](/home/quickstart)
2121
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)
2222

app/en/home/langchain/use-arcade-with-langchain/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Learn how to integrate Arcade tools using LangChain primitives
1818

1919
<GuideOverview.Prerequisites>
2020

21-
- [Arcade account](https://api.arcade.dev/signup)
21+
- <DashboardLink path="register" />
2222
- The [`bun` runtime](https://bun.com/)
2323

2424
</GuideOverview.Prerequisites>

app/en/home/serve-tools/arcade-deploy/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This guide shows you how to deploy your MCP Server with Arcade Deploy.
1919

2020
<GuideOverview.Prerequisites>
2121

22-
- [Arcade account](https://api.arcade.dev/signup)
22+
- <DashboardLink path="register" />
2323
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)
2424
- [Create an MCP Server](/home/build-tools/create-a-mcp-server)
2525

app/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { getDictionary } from "@/_dictionaries/get-dictionary";
22
import { SignupLink } from "@/app/_components/analytics";
33
import CustomLayout from "@/app/_components/custom-layout";
4+
import { getDashboardUrl } from "@/app/_components/dashboard-link";
45
import { Footer } from "@/app/_components/footer";
56
import { Logo } from "@/app/_components/logo";
67
import NavBarButton from "@/app/_components/nav-bar-button";
@@ -139,7 +140,7 @@ export default async function RootLayout({
139140
text="Sign Up"
140141
/>
141142
</SignupLink>
142-
<Link href="https://api.arcade.dev/dashboard/playground/chat">
143+
<Link href={getDashboardUrl("playground/chat")}>
143144
<NavBarButton text="Dashboard" variant="outline" />
144145
</Link>
145146
</Navbar>

0 commit comments

Comments
 (0)