I tried adding a .env
file to the root of my directory and I tried accessing the contents with
[@bs.val] external graphqlUrl : string = "process.env.GRAPHQL_URL";
but it when I Js.log(graphqlUrl);
it's undefined
!
.env
file:
GRAPHQL_URL=https://api.example.com
How do I access it?
Thank you!