React Build Bundle – Don’t put your secrets in the .env file! – (5/100)

By 5th January 2022 January 24th, 2022 #100DaysOfCode

Day 5 | #100DaysOfCode

 

Today I did some refactoring on my React & Google Sheets project. I realized that the .env file isn’t so secret once you built the react app, as the secret will be compiled into the final build and are exposed.

So it is best to have a backend for security.