Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use environment variables from .env file #865

Open
EricZeiberg opened this issue Dec 19, 2024 · 1 comment
Open

Add ability to use environment variables from .env file #865

EricZeiberg opened this issue Dec 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@EricZeiberg
Copy link

Description
Radon IDE allows users to manually set environment variables in the build using the env: {} field in the config JSON, but a lot of common workflows involve storing environment variables in a .env file, so it would be very helpful if there was a way to specify a file instead of having the keys live in the config.

Environment

  • Version of currently used Radon IDE: 1.0
  • Version of React Native/Expo used in the project: 0.78
@EricZeiberg EricZeiberg added the enhancement New feature or request label Dec 19, 2024
@kmagiera
Copy link
Member

Thanks for reporting.

I'm not sure if I understand this right. Not sure if you're referring here to some tools like react-native-dotenv to be able to access that (in which case I think this should just work) or you actually want the build comands to use environment variables from that .env file.

In case of the latter, I'd be curious to learn how this is used in workflows where Radon IDE isn't involved (e.g. from command line when you use expo or rn-cli). I know that some toolchains for other languages use this concept of .env but I am not aware of any standard nor typical scenario where this would be used by React Native specific tooling. So given you use that you must have some shell-like environment setup in a way to include .env or perhaps have that specified in package.json scripts section?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants