Attempt to load ambeeance client gracefully
package.json
{
//...
"dependencies": {
"ambeeance-loader": "1.0.0"
},
"devDependencies": {
"ambeeance-client": "x.y.z"
}
}your_app.js
const { ambeeance } = require("ambeeance-loader")(require);
const config = ambeeance(loadConfig());ambeeance-client will only be required if the environment is not production and AMBEEANCE=ENABLED is set in your
environment.