nimbella/netlify-plugin-nimbella

Bug: plugin fails with an error when there is no [nimbella] setting in netlify.toml

erezrokah opened this issue · 0 comments

To reproduce:
Use https://github.com/nimbella/netlify-plugin-nimbella#minimal-netlify-toml-configuration, e.g. a netlify.toml as such:

[[plugins]]
package = "netlify-plugin-nimbella"

See https://app.netlify.com/sites/determined-johnson-c85a62/deploys/5f79bdc630173a00089717dc

Error message:

Error: Cannot read property 'functions' of undefined

I believe this error is coming from:

isActions = existsSync(config.nimbella.functions);

I would also recommend checking if netlify.toml exists as some sites don't have it (e.g. you install the plugin using the UI)