Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

Allow changing settings between localhost and production backend #17

Closed
armenzg opened this issue Sep 11, 2017 · 2 comments
Closed

Allow changing settings between localhost and production backend #17

armenzg opened this issue Sep 11, 2017 · 2 comments

Comments

@armenzg
Copy link
Contributor

armenzg commented Sep 11, 2017

https://localhost:8011
vs
https://uplift.shipit.staging.mozilla-releng.net

LinkaiQi pushed a commit to LinkaiQi/firefox-code-coverage-frontend that referenced this issue Nov 3, 2017
@armenzg
Copy link
Contributor Author

armenzg commented Feb 5, 2018

mozilla/release-services#786 needs to be fixed first.

I fixed something similar in mozilla-frontend-infra/firefox-health-dashboard@a4db7cd (Notice I'm using neutrino instead react-scripts) by adding something like this:

"start:local": "BACKEND=http://localhost:3000 neutrino start"
...
process.env.BACKEND || 'https://health.graphics'
...
await (await fetch(${SETTINGS.backend}/api/bz/regressions/missed)).json();

@armenzg
Copy link
Contributor Author

armenzg commented Mar 1, 2018

Unimportant until we can actually set up the backend locally.
mozilla/release-services#786

@armenzg armenzg closed this as completed Mar 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant