From cfbbc381197066ed3852827793952a1832aba99f Mon Sep 17 00:00:00 2001 From: Jim Toth Date: Fri, 13 Sep 2024 08:51:01 -0400 Subject: [PATCH] Use ar.anyone.tech gateway if served from dashboard.anyone.io --- composables/arweave.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composables/arweave.ts b/composables/arweave.ts index 1ea7f64..da0ecbb 100755 --- a/composables/arweave.ts +++ b/composables/arweave.ts @@ -4,7 +4,9 @@ import Arweave from 'arweave'; const arweaveConfig = window.location.hostname === 'localhost' ? { protocol: 'https', host: 'arweave.net', port: 443 } - : {}; + : window.location.hostname === 'dashboard.anyone.io' + ? { protocol: 'https', host: 'ar.anyone.tech', port: 443 } + : {}; // : { protocol: 'https', host: window.location.hostname , port: 443 }; / removed on prod const arweave = Arweave.init(arweaveConfig);