Skip to content

Commit 63837ea

Browse files
authored
configure client wagmi provider with api keys (#217)
Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> Co-authored-by: Aaron Sutula <asutula@users.noreply.github.com>
1 parent 1eab762 commit 63837ea

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

packages/cli/.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ SESSION_COOKIE_NAME="STUDIO_SESSION"
66
SESSION_COOKIE_PASS="secure password secure password secure password secure password secure password secure password secure password"
77
DATA_SEAL_PASS="secure password secure password secure password secure password secure password secure password secure password"
88
POSTMARK_API_KEY=fillme(optional)
9-
API_ROUTER_INFURA_KEY="api key"
10-
API_ROUTER_QUICK_NODE_KEY="api key"
9+
NEXT_PUBLIC_API_ROUTER_INFURA_KEY="api key"
10+
NEXT_PUBLIC_API_ROUTER_QUICK_NODE_KEY="api key"

packages/web/components/wagmi-provider.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ const { chains, publicClient, webSocketPublicClient } = configuredChains(
88
typeof window !== "undefined" &&
99
(window.location?.hostname === "localhost" ||
1010
window.location?.hostname === "127.0.0.1"),
11+
{
12+
infura: process.env.NEXT_PUBLIC_API_ROUTER_INFURA_KEY ?? "",
13+
quickNode: process.env.NEXT_PUBLIC_API_ROUTER_QUICK_NODE_KEY ?? "",
14+
},
1115
);
1216

1317
const config = createConfig({

packages/web/lib/api-router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export const apiRouter = appRouter(
1111
(seal) => `${baseUrl}/invite?seal=${seal}`,
1212
process.env.DATA_SEAL_PASS!,
1313
process.env.NODE_ENV === "development",
14-
process.env.API_ROUTER_INFURA_KEY ?? "",
15-
process.env.API_ROUTER_QUICK_NODE_KEY ?? "",
14+
process.env.NEXT_PUBLIC_API_ROUTER_INFURA_KEY ?? "",
15+
process.env.NEXT_PUBLIC_API_ROUTER_QUICK_NODE_KEY ?? "",
1616
);

0 commit comments

Comments
 (0)