Closed KrisLau closed 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:
The tab seems to be missing when creating a run/debug config for React Native