Skip to content

Commit

Permalink
Make ENV consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos committed Sep 24, 2023
1 parent 2e5a279 commit 0a632cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/assets/js/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const {
VITE_GNO_WS_URL,
VITE_JSONRPC_URL,
VITE_GNO_JSONRPC_URL,
VITE_GNO_CHESS_REALM,
VITE_FAUCET_URL
} = import.meta.env;
Expand All @@ -9,8 +9,8 @@ if (!VITE_GNO_WS_URL) {
throw Error('VITE_GNO_WS_URL property not found in .env');
}

if (!VITE_JSONRPC_URL) {
throw Error('VITE_JSONRPC_URL property not found in .env');
if (!VITE_GNO_JSONRPC_URL) {
throw Error('VITE_GNO_JSONRPC_URL property not found in .env');
}

if (!VITE_GNO_CHESS_REALM) {
Expand All @@ -23,7 +23,7 @@ if (!VITE_FAUCET_URL) {

export default {
GNO_WS_URL: VITE_GNO_WS_URL,
GNO_JSONRPC_URL: VITE_JSONRPC_URL,
GNO_JSONRPC_URL: VITE_GNO_JSONRPC_URL,
GNO_CHESS_REALM: VITE_GNO_CHESS_REALM,
FAUCET_URL: VITE_FAUCET_URL
};

0 comments on commit 0a632cf

Please sign in to comment.