ashald / EnvFile

EnvFile 3.x is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple files.
MIT License
545 stars 129 forks source link

Support for react native configurations #233

Closed KrisLau closed 3 months ago

KrisLau commented 3 months ago

The tab seems to be missing when creating a run/debug config for React Native

KrisLau commented 3 months ago

Nevermind figured out a way to do it from Intellij itself: https://stackoverflow.com/questions/55662062/how-to-manage-react-native-env-variables-with-phpstorm-run-debug-configuration

You can create separate run configurations with appropriate names for dev, staging and prod, setting the corresponding environment variables (ENVFILE=.env.staging, ENVFILE=.env.prod and ENVFILE=.env.dev) in Environmentvariables: field of each of them, like:

image