diff --git a/batcher-ui/Dockerfile.ghostnet b/batcher-ui/Dockerfile.ghostnet index 043cc7cd..1321ca01 100644 --- a/batcher-ui/Dockerfile.ghostnet +++ b/batcher-ui/Dockerfile.ghostnet @@ -9,6 +9,10 @@ COPY ./package.json ./ RUN npm install COPY ./tsconfig.json ./jsconfig.json ./ +COPY ./.eslintignore ./.eslintignore ./ +COPY ./.eslintrc.json ./.eslintrc.json ./ +COPY ./next-env.d.ts ./next-env.d.ts ./ +COPY ./next.config.js ./next.config.js ./ #COPY ./pages ./pages COPY ./src ./src COPY ./styles ./styles diff --git a/batcher-ui/src/config/token-vaults.ts b/batcher-ui/src/config/token-vaults.ts index 9ed11049..8d5b97dc 100644 --- a/batcher-ui/src/config/token-vaults.ts +++ b/batcher-ui/src/config/token-vaults.ts @@ -1,7 +1,7 @@ export const tokenVaultsConfig: { [key: string]: string } = { - tzBTC: process.env.NEXT_PUBLIC_TZBTC_VAULT_CONTRACT_HASH, - USDT: process.env.NEXT_PUBLIC_USDT_VAULT_CONTRACT_HASH, - EURL: process.env.NEXT_PUBLIC_EURL_VAULT_CONTRACT_HASH, - BTCtz: process.env.NEXT_PUBLIC_BTCTZ_VAULT_CONTRACT_HASH, - USDtz: process.env.NEXT_PUBLIC_USDTZ_VAULT_CONTRACT_HASH, + tzBTC: process.env.NEXT_PUBLIC_TZBTC_VAULT_CONTRACT_HASH || '', + USDT: process.env.NEXT_PUBLIC_USDT_VAULT_CONTRACT_HASH || '', + EURL: process.env.NEXT_PUBLIC_EURL_VAULT_CONTRACT_HASH || '', + BTCtz: process.env.NEXT_PUBLIC_BTCTZ_VAULT_CONTRACT_HASH || '', + USDtz: process.env.NEXT_PUBLIC_USDTZ_VAULT_CONTRACT_HASH || '', }; diff --git a/batcher-ui/src/contexts/tezos-toolkit.tsx b/batcher-ui/src/contexts/tezos-toolkit.tsx index ce6da160..1829be61 100644 --- a/batcher-ui/src/contexts/tezos-toolkit.tsx +++ b/batcher-ui/src/contexts/tezos-toolkit.tsx @@ -6,7 +6,7 @@ type TzTkState = { }; export const TezosToolkitContext = createContext({ - tezos: new TezosToolkit(process.env.NEXT_PUBLIC_TEZOS_NODE_URI), + tezos: new TezosToolkit(process.env.NEXT_PUBLIC_TEZOS_NODE_URI || ''), }); export const useTezosToolkit = () => React.useContext(TezosToolkitContext);