How to use environment variables (.env) in react js app - VITE

preview_player
Показать описание
Learn How to use environment variables (.env) in a VITE react js application with no extra configurations.

#html #web #webdevelopment #react #reactjs #mui #css #tutorial #tutorials
Рекомендации по теме
Комментарии
Автор

Thank you so much
I was scratching my head for last couple of days.
Even after using import.meta.env

SaiSankethG-hk
Автор

thanks buddy, this helped a lot . was searching for the correct way for a long time

kingheisenberg
Автор

Thanks a lot this saved my 5hrs stress of finding how to make my .env api show up in the webpage

muse_tech
Автор

nice nice, sabi boyyy, direct and straight t the point

josephsam-iduh
Автор

Awesome, thanks for the video easy to understand

AlanSeyfirTech
Автор

Praise! Been sitting here and scratching my

karl
Автор

Thanks, I skipped the VITE_ part and I wasn't see any enviroment, it's okey after added this prefix.

berkslv
Автор

.env file not work when build project. but .env.local or .env.production it work, but this env not work with environment in docker -compose.yml file

paymentaccount
Автор

so we dont need import dotenv modules at all?

yanwardexuze