Skip to content

Commit

Permalink
fix: only allow ganache if is dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
vhcsilva committed Sep 6, 2024
1 parent e9d7606 commit 6d042c4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions contexts/wagmi-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,17 @@ const config = getDefaultConfig({
appName: "BEPRO",
projectId: publicRuntimeConfig?.walletConnectProjectId || "bc2288336095f20ebf8653a1ab670566",
chains: [
ganache,
polygon,
polygonAmoy,
polygonMumbai,
aurora,
auroraTestnet,
moonbeam,
coinEx,
mainnet,
polygonAmoy,
polygonMumbai,
auroraTestnet,
... (publicRuntimeConfig?.isProduction ? [] : [
ganache,
])
],
ssr: true,
storage: createStorage({
Expand Down

0 comments on commit 6d042c4

Please sign in to comment.