Feb 22, 202112:43 AM - edited Feb 22, 202112:54 PM
Participant
Where to put .env file in CMS-React-Boilderplate?
SOLVE
I am working with a custom version of CMS-React-Boilderplate and I'm having a hard time accessing any .env variables. I've created a `.env` file in my root directory and I have tried access it with `process.env.REACT_APP_...` without any success. Has anyone had any sucess using a `.env` file with hubspot?
Hey @SaraRandolph not sure how much help I can bring to the table here as I haven't used env variables with the cms boiler.
But have you tested in other environments? This seems to be a common issue with the env variables.
To expand I'm not sure if the CMS boiler is configured to use the env variables. I'd imagine it would be but you know what happens when you assume lol.
In an attempt to not leave you empty handed I did find these links that may help you trouble shoot: