feat: use specialized explorer endpoints (#17516)
This commit is contained in:
parent
302b83a198
commit
752cd7d15e
File diff suppressed because it is too large
Load Diff
|
@ -198,7 +198,7 @@ function ClusterToggle() {
|
|||
>
|
||||
{`${clusterName(net)}: `}
|
||||
<span className="text-muted d-inline-block">
|
||||
{clusterUrl(net, customUrl)}
|
||||
{clusterUrl(net, customUrl).replace("explorer-", "")}
|
||||
</span>
|
||||
</Link>
|
||||
);
|
||||
|
|
|
@ -58,11 +58,11 @@ export const DEVNET_URL = clusterApiUrl("devnet");
|
|||
export function clusterUrl(cluster: Cluster, customUrl: string): string {
|
||||
switch (cluster) {
|
||||
case Cluster.Devnet:
|
||||
return DEVNET_URL;
|
||||
return DEVNET_URL.replace("api", "explorer-api");
|
||||
case Cluster.MainnetBeta:
|
||||
return MAINNET_BETA_URL;
|
||||
return MAINNET_BETA_URL.replace("api", "explorer-api");
|
||||
case Cluster.Testnet:
|
||||
return TESTNET_URL;
|
||||
return TESTNET_URL.replace("api", "explorer-api");
|
||||
case Cluster.Custom:
|
||||
return customUrl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue