From 1d99becdde4da0f0fc91fdcd64d9171cb1330d62 Mon Sep 17 00:00:00 2001 From: notV4l Date: Tue, 6 Feb 2024 23:59:01 +0100 Subject: [PATCH] fix env vars --- web/src/dojo/setup/config.ts | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/web/src/dojo/setup/config.ts b/web/src/dojo/setup/config.ts index fa5aabb8e..33bb8d9e6 100644 --- a/web/src/dojo/setup/config.ts +++ b/web/src/dojo/setup/config.ts @@ -1,30 +1,20 @@ import manifest from "../../../manifest.json"; -const { - NEXT_PUBLIC_RPC_ENDPOINT, - NEXT_PUBLIC_GRAPHQL_ENDPOINT, - NEXT_PUBLIC_GRAPHQL_ENDPOINT_WS, - NEXT_PUBLIC_ADMIN_ADDRESS, - NEXT_PUBLIC_ADMIN_PRIVATE_KEY, - NEXT_PUBLIC_ACCOUNT_CLASS_HASH -} = process.env - - export type Config = ReturnType; export function dojoConfig() { return { - rpcUrl: NEXT_PUBLIC_RPC_ENDPOINT || "http://localhost:5050", - toriiUrl: NEXT_PUBLIC_GRAPHQL_ENDPOINT || "http://0.0.0.0:8080", + rpcUrl: process.env.NEXT_PUBLIC_RPC_ENDPOINT || "http://localhost:5050", + toriiUrl: process.env.NEXT_PUBLIC_GRAPHQL_ENDPOINT || "http://0.0.0.0:8080", masterAddress: - NEXT_PUBLIC_ADMIN_ADDRESS || + process.env.NEXT_PUBLIC_ADMIN_ADDRESS || "0x6162896d1d7ab204c7ccac6dd5f8e9e7c25ecd5ae4fcb4ad32e57786bb46e03", masterPrivateKey: - NEXT_PUBLIC_ADMIN_PRIVATE_KEY || + process.env.NEXT_PUBLIC_ADMIN_PRIVATE_KEY || "0x1800000000300000180000000000030000000000003006001800006600", accountClassHash: - NEXT_PUBLIC_ACCOUNT_CLASS_HASH || + process.env.NEXT_PUBLIC_ACCOUNT_CLASS_HASH || "0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", manifest, }