mars-v2-frontend/validate-env.js
Linkie Link 0acfe49815
feat: preperations for open sourcing the repo (#771)
* feat: preperations for open sourcing the repo

* fix: don’t use an apikey if there is none set
2024-02-06 10:27:58 +01:00

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')