Hi all,
I have trouble getting environment variables to work. In my netlify.toml I have:
[context.production]
environment = { GIT_LFS_ENABLED = "true" , GIT_LFS_FETCH_INCLUDE = "*.eot, *.woff, *.woff2 }
The deploy logs show no errors:
5:25:46 PM: ❯ Current directory
5:25:46 PM: /opt/build/repo
5:25:46 PM:
5:25:46 PM: ❯ Config file
5:25:46 PM: /opt/build/repo/netlify.toml
5:25:46 PM:
5:25:46 PM: ❯ Context
5:25:46 PM: production
It works, if I define the vars in the app.netlify.com GUI, but never if I use netlify.toml. Can anyone give an advice? Thanks.
perry
2
hi there, did you read this guide already?
Hi,
of course I’ve read numerous guides on this topic before posting my request for help.
luke
4
Hi, @dafoobar. I believe I have already answered this question here:
If there are other questions after reading that, please let us know.