Hey there, @nord
Apologies for the delay here, I appreciate you following up.
I brought this up to our Gatsby pro and they are suggesting the following: what if you try "build": "GATSBY_COMMIT_REF=$COMMIT_REF npm run build"
rather than setting the environment variable to GATSBY_COMMIT_REF=$COMMIT_REF
The problem is that the env var isn’t being expanded as it’s currently declared because .env.
files don’t handle env var expansion. Moving this outside of .env
to the build script will work around that.
Thanks again for following up, and please let us know if this gets you sorted out!