Skip to content

Commit

Permalink
chore(config): default to TRUSTED_GATEWAY_URL for TRUSTED_ARNS_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Sep 10, 2024
1 parent d114821 commit 69e4ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export const ARNS_RESOLVER_PRIORITY_ORDER = env
// TODO: support multiple gateway urls
export const TRUSTED_ARNS_GATEWAY_URL = env.varOrDefault(
'TRUSTED_ARNS_GATEWAY_URL',
'https://__NAME__.arweave.net',
`${new URL(TRUSTED_GATEWAY_URL).origin}://__NAME__.${new URL(TRUSTED_GATEWAY_URL).hostname}`,
);

//
Expand Down

0 comments on commit 69e4ddc

Please sign in to comment.