{"version":3,"sources":["jsdelivr-header.js","/npm/gatsby-plugin-env-variables@2.3.0/gatsby-node.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,QAAQ,sBAAwB,EAC9B,UACA,WACC,KACD,MAAM,UACJ,EAAS,UACT,GACE,GAAW,CAAC,EAEhB,GAAI,EACF,MAAM,IAAI,MAAM,yEAGlB,IAAK,EAAW,OAChB,MAAM,EAAS,OAAO,KAAK,QAAQ,KAAK,QAAO,CAAC,EAAK,KAC/C,EAAU,QAAQ,IAAQ,IAC5B,EAAI,eAAe,KAAS,KAAK,UAAU,QAAQ,IAAI,KAGlD,IACN,CAAC,GACJ,IAAI,EAEA,OAAO,KAAK,GAAQ,SACtB,EAAe,CAAC,EAAQ,OAAO,KAGjC,EAAQ,iBAAiB,CACvB,QAAS,GACT","file":"/npm/gatsby-plugin-env-variables@2.3.0/gatsby-node.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/gatsby-plugin-env-variables@2.3.0/gatsby-node.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n\nexports.onCreateWebpackConfig = ({\n  actions,\n  plugins\n}, options) => {\n  const {\n    allowList,\n    whitelist\n  } = options || {};\n\n  if (whitelist) {\n    throw new Error(\"Please update your gatsby-config and replace whitelist with allowList\");\n  }\n\n  if (!allowList) return;\n  const varobj = Object.keys(process.env).reduce((acc, key) => {\n    if (allowList.indexOf(key) >= 0) {\n      acc[`process.env.${key}`] = JSON.stringify(process.env[key]);\n    }\n\n    return acc;\n  }, {});\n  let pluginsToAdd;\n\n  if (Object.keys(varobj).length) {\n    pluginsToAdd = [plugins.define(varobj)];\n  }\n\n  actions.setWebpackConfig({\n    plugins: pluginsToAdd\n  });\n};"]}