Skip to content

Commit

Permalink
chore(ui-ux): make ocean endpoint configurable via env
Browse files Browse the repository at this point in the history
  • Loading branch information
pierregee committed Jul 18, 2024
1 parent d59a745 commit 8974538
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/layouts/contexts/WhaleContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export function getWhaleApiClient(
): WhaleApiClient {
const network =
context.query.network?.toString() ?? getEnvironment().networks[0];
return newWhaleClient(newOceanOptions(network as EnvironmentNetwork));
return newWhaleClient(
newOceanOptions(network as EnvironmentNetwork, process.env.OCEAN_ENDPOINT),
);
}

export function getWhaleRpcClient(
Expand Down

0 comments on commit 8974538

Please sign in to comment.