Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Externalize BASE_URL as environment variable #22

Open
joernb opened this issue Apr 21, 2020 · 0 comments
Open

Externalize BASE_URL as environment variable #22

joernb opened this issue Apr 21, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@joernb
Copy link
Member

joernb commented Apr 21, 2020

Currently, the BASE_URL is hardcoded:

private static final String BASE_URL = "https://api.ito-app.org";

By externalizing it as an environment variable, it will become possible to configure the BASE_URL during the build process and have different backends (e.g. staging vs production backend).

Possible solution: https://github.com/luggit/react-native-config

@joernb joernb added enhancement New feature or request help wanted Extra attention is needed labels Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant