Have you seen this article? Setting the variables is not enough; you must also interpolate them in your files during build:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Environment variables in production | 1 | 1748 | March 23, 2020 | |
| Gatsby Deployment With Enviroment Variables | 9 | 2049 | August 28, 2020 | |
| Gatsby js undefined environment variables | 3 | 3119 | August 3, 2020 | |
| How to access environment variables in a react component? | 17 | 20620 | November 12, 2020 | |
| Failed to find .env file at path: .env | 2 | 6161 | May 19, 2022 |