From 69e4ddcbe4ae75f07411a534d95e3bd1380d5e55 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Tue, 10 Sep 2024 10:59:45 -0600 Subject: [PATCH] chore(config): default to TRUSTED_GATEWAY_URL for TRUSTED_ARNS_URL --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 495aa05d..0453d5b0 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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}`, ); //