From 866207eaa78d32f4294a6babd275f4978188b3df Mon Sep 17 00:00:00 2001 From: Gerawork Aynekulu Date: Wed, 28 Feb 2024 16:01:26 +0100 Subject: [PATCH] chore: makes uniresolver endpoint configurable (#510) * chore: makes uniresolver endpoint configurable * chore: linting * chore: follow var naming convention * chore: linting --- .env.example | 1 + src/Components/VerificationMethod/VerificationMethod.tsx | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 16a52a47..fff208c3 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ REACT_APP_CHAIN_ENDPOINT=wss://peregrine.kilt.io +REACT_APP_UNIRESOLVER_ENDPOINT=https://dev-uniresolver.kilt.io REACT_APP_MAINTENANCE=false REACT_APP_IS_TEST_ENV=false diff --git a/src/Components/VerificationMethod/VerificationMethod.tsx b/src/Components/VerificationMethod/VerificationMethod.tsx index db6159a4..71567479 100644 --- a/src/Components/VerificationMethod/VerificationMethod.tsx +++ b/src/Components/VerificationMethod/VerificationMethod.tsx @@ -6,6 +6,9 @@ interface Props { did?: DidUri; } +export const uniresolverEndpoint = process.env + .REACT_APP_UNIRESOLVER_ENDPOINT as string; + export const VerificationMethod = (props: Props) => { return (
@@ -17,11 +20,11 @@ export const VerificationMethod = (props: Props) => { - {`https://dev.uniresolver.io/#\n${props.did}`} + {`${uniresolverEndpoint}/#\n${props.did}`}