---
title: "Comment by Taís Massaro on \"Using a Dotenv File to Store and Use API Keys in a Vite-built React App\" | Hashnode"
description: "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 ou"
url: "https://hashnode.com/posts/using-a-dotenv-file-to-store-and-use-api-keys-in-a-vite-built-react-app/63bc174b14626743de083635/comment/64b00e0a3910a270b4c98f1f"
---

[Discussion](https://hashnode.com/posts/using-a-dotenv-file-to-store-and-use-api-keys-in-a-vite-built-react-app/63bc174b14626743de083635)

Comment [Using a Dotenv File to Store and Use API Keys in a Vite-built React App](https://hashnode.com/posts/using-a-dotenv-file-to-store-and-use-api-keys-in-a-vite-built-react-app/63bc174b14626743de083635)

[Taís Massaro](https://hashnode.com/@taismassaro)

[Jul 13, 2023](https://hashnode.com/posts/using-a-dotenv-file-to-store-and-use-api-keys-in-a-vite-built-react-app/63bc174b14626743de083635/comment/64b00e0a3910a270b4c98f1f)

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?
