I use eas.json
to add my different environment vars for my builds. Is there a way to use the same file to be able to run locally in Metro? Currently I am using a .env
locally and eas.json
for my builds, but I would like to have all of this work in the same location.
If those envs are used only to set configuration in app.json, you can convert it to app.config.js and embed all values inside it. This way you would have only one env in eas.json e.g. ENVIRONMENT
and just select other values based on that. With this solution you will still need to specify that one environment variable when running other commands.