Using a Dotenv File to Store and Use API Keys in a Vite-built React App
I recently developed a form authentication application that required an API key in order for users to gain access to the backend. It was suggested that I keep my API key in a dotenv file. I went ahead and completed this because I had never previously...
devzibah.hashnode.dev3 min read
Taís Massaro
hi Chisom, I just found your post while trying to understand how to inject env variables since that can only happen after the application is built by Vite in our case. do you have any experience with that? how do you add the production .env files to your application?