diff --git a/.env.dev b/.env.dev index a4e221b..2d0ac21 100644 --- a/.env.dev +++ b/.env.dev @@ -14,4 +14,5 @@ VUE_APP_NET_ID='13473' VUE_APP_MARKET_CURRENCY='0xFd42bfb03212dA7e1A4608a44d7658641D99CF34' VUE_APP_MAKEFEE_ADDRESS='0x50A8e60041A206AcaA5F844a1104896224be6F39' VUE_APP_LOCKER_ADDRESS='0xC8607507451059CfAe6Ca4D07EC6f631ce8ef9f9' -VUE_APP_EXPLORER_URL='https://explorer.testnet.immutable.com/address/' \ No newline at end of file +VUE_APP_EXPLORER_URL='https://explorer.testnet.immutable.com/address/' +VUE_APP_PRODUCTION=sandbox \ No newline at end of file diff --git a/.env.development b/.env.development index 5c838c0..d9e7f5e 100644 --- a/.env.development +++ b/.env.development @@ -14,4 +14,5 @@ VUE_APP_NET_ID='13473' VUE_APP_MARKET_CURRENCY='0xFd42bfb03212dA7e1A4608a44d7658641D99CF34' VUE_APP_MAKEFEE_ADDRESS='0x50A8e60041A206AcaA5F844a1104896224be6F39' VUE_APP_LOCKER_ADDRESS='0xC8607507451059CfAe6Ca4D07EC6f631ce8ef9f9' -VUE_APP_EXPLORER_URL='https://explorer.testnet.immutable.com/address/' \ No newline at end of file +VUE_APP_EXPLORER_URL='https://explorer.testnet.immutable.com/address/' +VUE_APP_PRODUCTION=sandbox \ No newline at end of file diff --git a/.env.production b/.env.production index de54ea0..bd09e02 100644 --- a/.env.production +++ b/.env.production @@ -30,4 +30,5 @@ VUE_APP_NET_ID='13473' VUE_APP_MARKET_CURRENCY='0xFd42bfb03212dA7e1A4608a44d7658641D99CF34' VUE_APP_MAKEFEE_ADDRESS='0x50A8e60041A206AcaA5F844a1104896224be6F39' VUE_APP_LOCKER_ADDRESS='0xC8607507451059CfAe6Ca4D07EC6f631ce8ef9f9' -VUE_APP_EXPLORER_URL='https://explorer.immutable.com/address/' \ No newline at end of file +VUE_APP_EXPLORER_URL='https://explorer.immutable.com/address/' +VUE_APP_PRODUCTION=production \ No newline at end of file diff --git a/src/components/chain/wallet/PassportWallet.js b/src/components/chain/wallet/PassportWallet.js index 34ce607..4efd1cb 100644 --- a/src/components/chain/wallet/PassportWallet.js +++ b/src/components/chain/wallet/PassportWallet.js @@ -2,7 +2,7 @@ import { config, passport, orderbook, checkout } from '@imtbl/sdk'; import { providers } from 'ethers'; import { cfgChainId } from '@/components/chain/utils.js'; -const environment = process.env.NODE_ENV === 'production' ? config.Environment.PRODUCTION : config.Environment.SANDBOX; +const environment = import.meta.env.VUE_APP_PRODUCTION const publishableKey = import.meta.env.VUE_APP_PASSPORT_PUBLISHABLE_KEY const clientId = import.meta.env.VUE_APP_PASSPORT_CLIENT_ID const redirectUri = import.meta.env.VUE_APP_PASSPORT_REDIRECT_URI