0acfe49815
* feat: preperations for open sourcing the repo * fix: don’t use an apikey if there is none set
11 lines
393 B
JavaScript
11 lines
393 B
JavaScript
require('dotenv').config({ path: './.env.local' })
|
|
|
|
if (!process.env.NEXT_PUBLIC_NETWORK) {
|
|
throw 'NEXT_PUBLIC_NETWORK is not defined. Set ot to "mainnet" or "testnet".'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_WALLET_CONNECT_ID) {
|
|
throw 'NEXT_PUBLIC_WALLET_CONNECT_ID is not defined. Get a WalletConnect project ID from https://walletconnect.com/.'
|
|
}
|
|
|
|
console.log('✅ Required env variables set')
|