index.js
function config() {
  // only run this if it's not running inside Now.sh
  if (Boolean(process.env.NOW_REGION || process.env.NOW)) return

  const secrets = loadSecrets()
  const required = loadRequired()

  // load environment variables from now.json
  loadNowJSON(secrets, required)
}
function config() {
  // only run this if it's not running inside Now.sh
  if (Boolean(process.env.NOW_REGION || process.env.NOW)) return

  const secrets = loadSecrets()
  const required = loadRequired()

  // load environment variables from now.json
  loadNowJSON(secrets, required)
}
function config ( ) { // only run this if it's not running inside Now.sh if ( Boolean ( process . env . NOW_REGION || process . env . NOW ) ) return const secrets = loadSecrets ( ) const required = loadRequired ( ) // load environment variables from now.json loadNowJSON ( secrets , required ) }
Check if is running inside Now.sh and apply variables and secrets to `process.env`
Check if is running inside Now . sh and apply variables and secrets to process . env