Open jamilharun opened 7 months ago
base on the documentation of vite-react
npm install dotenv
"VITE" letter.
changing the current "SECRET_KEY" will turn into "VITE-SECRET_KEY" and other "VITE_API_KEY"
VITE-SECRET_KEY
VITE_API_KEY
i need to change the current "process.env.SECRET_KEY" and "process.env.API_KEY" into "import.meta.env.VITE-SECRET_KEY" and "import.meta.env.VITE_API_KEY"
import.meta.env.VITE-SECRET_KEY
import.meta.env.VITE_API_KEY
Branch
dotenv_undefined
issue 2
Dotenv is undefined for some reason.
i created .env to securely store important secrets and keys for our future api calls but something wrong. it wouldnt output. it just says its undefined and causing whole app to crash
.env
App.jsx