Hello everyone
Is there a way to use environment variables inside deploy plugin config?
For instance, we are using Netlify Plugin Lighthouse to run page speed checks on our production website every time there’s a new deploy to main
.
However, we also need to run those tests on branch preview deploys so we can have an idea of whether the scores got better or worse.
Our plugin config is currently like this:
[[plugins]]
package = "@netlify/plugin-lighthouse"
[[plugins.inputs.audits]]
url = "https://getcircuit.com"
[[plugins.inputs.audits]]
url = "https://getcircuit.com/teams"
[[plugins.inputs.audits]]
url = "https://getcircuit.com/teams/blog"
Is there a way to make something like this work?
[[plugins]]
package = "@netlify/plugin-lighthouse"
[[plugins.inputs.audits]]
url = "${DEPLOY_PRIME_URL}"
[[plugins.inputs.audits]]
url = "${DEPLOY_PRIME_URL}/teams"
[[plugins.inputs.audits]]
url = "${DEPLOY_PRIME_URL}/teams/blog"