.codebloxenv

Use this file to store sensitive information you don't want to commit to source control like API keys and secret tokens. Note that there is no way to limit invocations of this code, so you will be responsible for any API requests to external services which use your API key. Codeblox will be adding more common services like weather and geocoding.

Values in this file will be provided under process.env

Example:

WEATHER_API_KEY=1234
OTHER_API_KEY=5678

codeblox.js

const codeblox = require('codeblox')

module.exports.default = codeblox((input, options, callback) => {
  console.log(process.env.WEATHER_API_KEY) // 1234
})

This file is parsed using dotenv, so you can use any syntax allowed there.

results matching ""

    No results matching ""