mars-v2-frontend/validate-env.js
2024-01-25 14:30:01 +01:00

17 lines
515 B
JavaScript

require('dotenv').config({ path: './.env.local' })
if (!process.env.CHARTING_LIBRARY_USERNAME) {
throw 'CHARTING_LIBRARY_USERNAME is not defined'
}
if (!process.env.CHARTING_LIBRARY_ACCESS_TOKEN) {
throw 'CHARTING_LIBRARY_ACCESS_TOKEN is not defined'
}
if (!process.env.CHARTING_LIBRARY_REPOSITORY) {
throw 'CHARTING_LIBRARY_REPOSITORY is not defined'
}
if (!process.env.NEXT_PUBLIC_WALLET_CONNECT_ID) {
throw 'NEXT_PUBLIC_WALLET_CONNECT_ID is not defined'
}
console.log('✅ Required env variables set')