evgeny-nadymov / telegram-react

Experimental Telegram web client with tdlib, webassembly and react js under the hood
https://evgeny-nadymov.github.io/telegram-react/
GNU General Public License v3.0
2.31k stars 605 forks source link

The package.json version is began to be used as an env variable. #428

Open nurullah opened 2 years ago

nurullah commented 2 years ago

Instead of importing the package.json version for wherever it is needed, we can use it as an env variable anywhere without importing file.

https://create-react-app.dev/docs/adding-custom-environment-variables/#expanding-environment-variables-in-env