22 lines
488 B
JavaScript
22 lines
488 B
JavaScript
const chalk = require('chalk')
|
|
|
|
function checkForFaunaKey() {
|
|
if (!process.env.FAUNADB_SERVER_SECRET) {
|
|
console.log(chalk.yellow('Required FAUNADB_SERVER_SECRET enviroment variable not found.'))
|
|
console.log(`
|
|
=========================
|
|
|
|
You can create fauna DB keys here: https://dashboard.fauna.com/db/keys
|
|
|
|
In your terminal run the following command:
|
|
|
|
export FAUNADB_SERVER_SECRET=YourFaunaDBKeyHere
|
|
|
|
=========================
|
|
`)
|
|
|
|
process.exit(1)
|
|
}
|
|
}
|
|
|
|
checkForFaunaKey()
|