Skip to content

Commit

Permalink
fix(services): check process first
Browse files Browse the repository at this point in the history
vite
  • Loading branch information
2nthony committed May 10, 2023
1 parent 5de17ed commit 1e1b9e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/services/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import { identityChainMap } from "@osn/constants";
import { Deferred, encodeNetworkAddress } from "../utils";

const identityServerHost =
process?.env?.REACT_APP_IDENTITY_SERVER_HOST ||
process?.env?.NEXT_PUBLIC_IDENTITY_SERVER_HOST ||
(typeof process !== "undefined"
? process.env.REACT_APP_IDENTITY_SERVER_HOST
: undefined) ||
(typeof process !== "undefined"
? process.env.NEXT_PUBLIC_IDENTITY_SERVER_HOST
: undefined) ||
"https://id.statescan.io";

const cachedIdentities = new Map();
Expand Down

0 comments on commit 1e1b9e3

Please sign in to comment.