build icon indicating copy to clipboard operation
build copied to clipboard

Add buildbot's Bash script's specific environment variables to local builds

Open ehmicky opened this issue 5 years ago • 0 comments

This issue is part of the bigger issue at #40. Also related to #667.

Some environment variables are used mainly inside the buildbot's internal logic. Most (but not all) are undocumented. Some are meant to be overridden by users, others not.

The list of variables is mostly private so cannot be listed in this issue. Those are mostly variables related to specific languages (Go, Node, PHP, etc.) or frameworks (Hugo, etc.).

The problem is that those variables are not present in local builds (Netlify CLI and programmatically) which might lead to local builds behaving differently from production builds.

I think the way forward is to move the Bash script's logic to @netlify/build which is a long-running item summarized here. Once this is done, the environment variables should be available both locally and in production.

ehmicky avatar Feb 14 '20 19:02 ehmicky