VITE/React – Struggling to get environment variables to pick up my variables set in the “secrets” section of my terraform
I’m working with a React app using VITE (for the first time) and struggling to get the variables declared in my terraform (grabbed from AWS Parameter Store) to pull through. When I set the variable in a .env file like below and run locally, the variable is set fine as I can see in the console. However when I deploy it to our QA environment (Dockerized), the console logs it as undefined, using both process.env and import.meta.env. If anyone could shed some light on what I may be doing wrong and why I would appreciate it.