Skip to content

Commit

Permalink
chore: makes uniresolver endpoint configurable (#510)
Browse files Browse the repository at this point in the history
* chore: makes uniresolver endpoint configurable

* chore: linting

* chore: follow var naming convention

* chore: linting
  • Loading branch information
ggera authored Feb 28, 2024
1 parent 62af36a commit 866207e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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
7 changes: 5 additions & 2 deletions src/Components/VerificationMethod/VerificationMethod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className={styles.container}>
Expand All @@ -17,11 +20,11 @@ export const VerificationMethod = (props: Props) => {
</span>
<a
className={styles.anchor}
href={`https://dev.uniresolver.io/#${props.did}`}
href={`${uniresolverEndpoint}/#${props.did}`}
target="_blank"
rel="noreferrer"
>
{`https://dev.uniresolver.io/#\n${props.did}`}
{`${uniresolverEndpoint}/#\n${props.did}`}
</a>
</div>
</div>
Expand Down

0 comments on commit 866207e

Please sign in to comment.