diff --git a/web/src/components/layout/DrawerMenu.tsx b/web/src/components/layout/DrawerMenu.tsx index f26c2455..28b9b98b 100644 --- a/web/src/components/layout/DrawerMenu.tsx +++ b/web/src/components/layout/DrawerMenu.tsx @@ -91,8 +91,13 @@ const DrawerMenu = () => { - - + + {process.env.NODE_ENV !== "production" && ( + <> + + + + )} diff --git a/web/src/dojo/context/DojoContext.tsx b/web/src/dojo/context/DojoContext.tsx index dd3cca15..f7827f81 100644 --- a/web/src/dojo/context/DojoContext.tsx +++ b/web/src/dojo/context/DojoContext.tsx @@ -58,10 +58,12 @@ export const DojoContextProvider = observer( ? Object.values(dojoContextConfig)[0] : Object.values(dojoContextConfig)[1] ? Object.values(dojoContextConfig)[1] - : Object.values(dojoContextConfig)[0]; //dojoContextConfig.KATANA; + : Object.values(dojoContextConfig)[0]; const lastSelectedChainId = - typeof window !== "undefined" ? window?.localStorage?.getItem("lastSelectedChainId") : undefined; + typeof window !== "undefined" && process.env.NODE_ENV !== "production" + ? window?.localStorage?.getItem("lastSelectedChainId") + : undefined; const intialChain = lastSelectedChainId && dojoContextConfig[lastSelectedChainId as SupportedChainIds] diff --git a/web/src/dojo/setup/config.ts b/web/src/dojo/setup/config.ts index dd387ad7..771c2deb 100644 --- a/web/src/dojo/setup/config.ts +++ b/web/src/dojo/setup/config.ts @@ -139,7 +139,7 @@ export const dojoContextConfig = { // SN_SEPOLIA: snSepolia, // WP_RYO2: katanaSlot2, // WP_RYO1: katanaSlot1, - // KATANA: katanaLocal, + KATANA: katanaLocal, }; export const dojoChains = Object.values(dojoContextConfig); diff --git a/web/src/pages/_document.tsx b/web/src/pages/_document.tsx index cf734513..b2d2730c 100644 --- a/web/src/pages/_document.tsx +++ b/web/src/pages/_document.tsx @@ -1,5 +1,6 @@ import { Head, Html, Main, NextScript } from "next/document"; +const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL ?? ""; const metas = { title: "Dope Wars", descritpion: @@ -7,7 +8,7 @@ const metas = { socialDescription: "Prove you're the ultimate hustler. Move product, stack paper, and rise to the top in Dope Wars. Play now and claim your spot on the leaderboard!", image: { - url: "/images/play-dope-wars.png", + url: `${baseUrl}/images/play-dope-wars.png`, width: "1200", height: "630", },