DEV Community

Discussion on: 5 things to remember when using a .env file to store an API key in your React app

Collapse
 
blossom profile image
Blossom Babs

Since I put key in .env file, I've been getting an error 401. I didn't include any quotation or semi-colon

Collapse
 
blossom profile image
Blossom Babs

I added my .env in the src folder instead of the root folder, once I changed that, I cleared my bug.