Skip to content

Commit

Permalink
Use ar.anyone.tech gateway if served from dashboard.anyone.io
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-toth committed Sep 13, 2024
1 parent 7015ec0 commit cfbbc38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion composables/arweave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cfbbc38

Please sign in to comment.