b24bbb3376
* feat: move app to pages features * feat: route changes * Use React Router, Remove SSR * Fix account menu * Remove app folder * remove old useParams * Moved pages back to pages and refactor names * add layout to route * clean up * create hooks for api fetching * fix refetch of all data on tx complete * formatting * fix: fixed the wallet-connector race condition * remove cosmjs/stargate (#202) * remove cosmjs/stargate * add Yusuf as code-orwner * Singleton client (#203) * remove cosmjs/stargate * add Yusuf as code-orwner * create signleton client and refactor vaults api * update client name, add apollo apr env * Setup validate-env and remove checking from apis * uncomment vaults * Resolve comments * fix: html templating, add checks for hydration&window object, reduce bundle size (#204) * fix: tests * Fix routing and wallet client (#205) * Add header to router (as layout) * Refactor Wallet component * Remove server fallback packages webpack * add missing dependency for useeffect --------- Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com> Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
require('dotenv').config({ path: './.env.local' })
|
|
|
|
if (!process.env.NEXT_PUBLIC_ACCOUNT_NFT) {
|
|
throw 'NEXT_PUBLIC_ACCOUNT_NFT is not defined'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_CREDIT_MANAGER) {
|
|
throw 'NEXT_PUBLIC_CREDIT_MANAGER is not defined'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_INCENTIVES) {
|
|
throw 'NEXT_PUBLIC_INCENTIVES is not defined'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_ORACLE) {
|
|
throw 'NEXT_PUBLIC_ORACLE is not defined'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_RED_BANK) {
|
|
throw 'NEXT_PUBLIC_RED_BANK is not defined'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_SWAPPER) {
|
|
throw 'NEXT_PUBLIC_SWAPPER is not defined'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_CHAIN_ID) {
|
|
throw 'NEXT_PUBLIC_CHAIN_ID is not defined'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_NETWORK) {
|
|
throw 'NEXT_PUBLIC_NETWORK is not defined'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_GQL) {
|
|
throw 'NEXT_PUBLIC_GQL is not defined'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_REST) {
|
|
throw 'NEXT_PUBLIC_REST is not defined'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_APOLLO_APR) {
|
|
throw 'NEXT_PUBLIC_APOLLO_APR is not defined'
|
|
}
|
|
if (!process.env.NEXT_PUBLIC_RPC) {
|
|
throw 'NEXT_PUBLIC_RPC is not defined'
|
|
} else {
|
|
console.log('✅ Required env variables set')
|
|
}
|