diff --git a/apps/dashboard/src/@/constants/env.ts b/apps/dashboard/src/@/constants/env.ts index 8796d24c28a..5d08f25ae51 100644 --- a/apps/dashboard/src/@/constants/env.ts +++ b/apps/dashboard/src/@/constants/env.ts @@ -4,6 +4,11 @@ export const DASHBOARD_THIRDWEB_CLIENT_ID = export const DASHBOARD_THIRDWEB_SECRET_KEY = process.env.DASHBOARD_SECRET_KEY || ""; +export const NEXT_PUBLIC_NEBULA_APP_CLIENT_ID = + process.env.NEXT_PUBLIC_NEBULA_APP_CLIENT_ID || ""; + +export const NEBULA_APP_SECRET_KEY = process.env.NEBULA_APP_SECRET_KEY || ""; + export const THIRDWEB_API_SECRET = process.env.API_SERVER_SECRET || ""; export const IPFS_GATEWAY_URL = diff --git a/apps/dashboard/src/app/nebula-app/(app)/components/EmptyStateChatPageContent.tsx b/apps/dashboard/src/app/nebula-app/(app)/components/EmptyStateChatPageContent.tsx index 70424007c89..d8671763fd0 100644 --- a/apps/dashboard/src/app/nebula-app/(app)/components/EmptyStateChatPageContent.tsx +++ b/apps/dashboard/src/app/nebula-app/(app)/components/EmptyStateChatPageContent.tsx @@ -5,7 +5,7 @@ import { ArrowUpRightIcon } from "lucide-react"; import type { NebulaContext } from "../api/chat"; import { examplePrompts } from "../data/examplePrompts"; import { NebulaIcon } from "../icons/NebulaIcon"; -import { nebulaThirdwebClient } from "../utils/nebulaThirdwebClient"; +import { nebulaAppThirdwebClient } from "../utils/nebulaThirdwebClient"; import { ChatBar, type WalletMeta } from "./ChatBar"; export function EmptyStateChatPageContent(props: { @@ -42,7 +42,7 @@ export function EmptyStateChatPageContent(props: { setContext={props.setContext} sendMessage={props.sendMessage} isChatStreaming={false} - client={nebulaThirdwebClient} + client={nebulaAppThirdwebClient} connectedWallets={props.connectedWallets} activeAccountAddress={props.activeAccountAddress} setActiveWallet={props.setActiveWallet} diff --git a/apps/dashboard/src/app/nebula-app/(app)/components/NebulaConnectButton.tsx b/apps/dashboard/src/app/nebula-app/(app)/components/NebulaConnectButton.tsx index da41c750fc3..acac5f04a3e 100644 --- a/apps/dashboard/src/app/nebula-app/(app)/components/NebulaConnectButton.tsx +++ b/apps/dashboard/src/app/nebula-app/(app)/components/NebulaConnectButton.tsx @@ -2,8 +2,8 @@ import { Spinner } from "@/components/ui/Spinner/Spinner"; import { Button } from "@/components/ui/button"; -import { useThirdwebClient } from "@/constants/thirdweb.client"; import { useDashboardRouter } from "@/lib/DashboardRouter"; +import { cn } from "@/lib/utils"; import { getSDKTheme } from "app/(app)/components/sdk-component-theme"; import { useAllChainsData } from "hooks/chains/allChains"; import { useTheme } from "next-themes"; @@ -14,15 +14,14 @@ import { useActiveAccount, useActiveWalletConnectionStatus, } from "thirdweb/react"; -import { cn } from "../../../../@/lib/utils"; import { doNebulaLogout } from "../../login/auth-actions"; +import { nebulaAppThirdwebClient } from "../utils/nebulaThirdwebClient"; export const NebulaConnectWallet = (props: { connectButtonClassName?: string; signInLinkButtonClassName?: string; detailsButtonClassName?: string; }) => { - const thirdwebClient = useThirdwebClient(); const router = useDashboardRouter(); const { theme } = useTheme(); const t = theme === "light" ? "light" : "dark"; @@ -67,7 +66,7 @@ export const NebulaConnectWallet = (props: { return (