From cd3c5e7d8822cea08a7bbe2d2b5f6037bab58bf1 Mon Sep 17 00:00:00 2001 From: pierregee Date: Thu, 25 Jul 2024 14:25:06 +0800 Subject: [PATCH] fix naming --- src/layouts/contexts/WhaleContext.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/layouts/contexts/WhaleContext.tsx b/src/layouts/contexts/WhaleContext.tsx index ac1c52954..369712eae 100644 --- a/src/layouts/contexts/WhaleContext.tsx +++ b/src/layouts/contexts/WhaleContext.tsx @@ -36,7 +36,7 @@ export function getWhaleApiClient( return newWhaleClient( newOceanOptions( network as EnvironmentNetwork, - process.env.OCEAN_CLIENT_ENDPOINT, + process.env.NEXT_PUBLIC_API_CLIENT_ENDPOINT, ), ); } @@ -49,7 +49,7 @@ export function getWhaleRpcClient( return newRpcClient( newOceanOptions( network as EnvironmentNetwork, - process.env.RPC_CLIENT_ENDPOINT, + process.env.NEXT_PUBLIC_RPC_CLIENT_ENDPOINT, ), ); } @@ -78,11 +78,11 @@ export function WhaleProvider( const memo = useMemo(() => { const oceanClientOptions = newOceanOptions( connection, - process.env.OCEAN_CLIENT_ENDPOINT, + process.env.NEXT_PUBLIC_API_CLIENT_ENDPOINT, ); const rpcClientOptions = newOceanOptions( connection, - process.env.RPC_CLIENT_ENDPOINT, + process.env.NEXT_PUBLIC_RPC_CLIENT_ENDPOINT, ); return {