You can set and use your own environment variables in your projects. They will be available in your code…
One may think that the environment variables are available in all the code, from templates to JS assets. It may take time to understand the truth.
This PR adds a note in the beginning that explains the borders of applicability.
I'm not sure about the JS templates, whether env vars are exposed there or not. The whole note text needs scrupulous check by a maintainer since it's just my understanding of how it works.
As of now, the wording is quite broad and may create confusion.
https://www.11ty.dev/docs/environment-vars/
One may think that the environment variables are available in all the code, from templates to JS assets. It may take time to understand the truth.
This PR adds a note in the beginning that explains the borders of applicability.
I'm not sure about the JS templates, whether env vars are exposed there or not. The whole note text needs scrupulous check by a maintainer since it's just my understanding of how it works.