Skip to content

Commit

Permalink
absolute image url
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l committed Nov 16, 2024
1 parent afd7689 commit 49e5ece
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
9 changes: 7 additions & 2 deletions web/src/components/layout/DrawerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,13 @@ const DrawerMenu = () => {

<DrawerListItem cursor="default">
<HStack w="full" justifyContent="space-between">
<ConnectButton /> <ChainSelector canChange={!gameId} /> <Burners />
<Predeployed />
<ConnectButton />
{process.env.NODE_ENV !== "production" && (
<>
<ChainSelector canChange={!gameId} /> <Burners />
<Predeployed />
</>
)}
</HStack>
</DrawerListItem>

Expand Down
6 changes: 4 additions & 2 deletions web/src/dojo/context/DojoContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion web/src/dojo/setup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion web/src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { Head, Html, Main, NextScript } from "next/document";

const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL ?? "";
const metas = {
title: "Dope Wars",
descritpion:
"Dope Wars is an onchain adaptation of the classic arbitrage game Drug Wars, built by Cartridge in partnership with Dope DAO",
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",
},
Expand Down

0 comments on commit 49e5ece

Please sign in to comment.