netlify-faunadb-example2/scripts/check-for-fauna-key.js
2018-06-20 14:03:41 -07:00

14 lines
296 B
JavaScript

const chalk = require('chalk')
if (!process.env.FAUNADB_SECRET) {
console.log('Please set supply a faunaDB server key')
console.log(`
=========================
In your terminal run the following command
export FAUNADB_SECRET=abcYourKeyHere
=========================
`)
process.exit(1)
}