bring back staging backend

This commit is contained in:
Tao Bror Bojlén 2020-02-19 10:06:46 +00:00
parent 99f2b247dc
commit 41ac4ca9a8
No known key found for this signature in database
GPG key ID: C6EC7AAB905F9E6F
2 changed files with 3 additions and 1 deletions

View file

@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Bring back `develop` staging backup (now managed in DNS)
### Deprecated ### Deprecated
### Removed ### Removed

View file

@ -6,7 +6,7 @@ import { IAppState } from "./redux/types";
let API_ROOT = "http://localhost:4000/api/"; let API_ROOT = "http://localhost:4000/api/";
if (["true", true, 1, "1"].indexOf(process.env.REACT_APP_STAGING || "") > -1) { if (["true", true, 1, "1"].indexOf(process.env.REACT_APP_STAGING || "") > -1) {
API_ROOT = "https://phoenix.api.fediverse.space/api/"; API_ROOT = "https://phoenix.api-develop.fediverse.space/api/";
} else if (process.env.NODE_ENV === "production") { } else if (process.env.NODE_ENV === "production") {
API_ROOT = "https://phoenix.api.fediverse.space/api/"; API_ROOT = "https://phoenix.api.fediverse.space/api/";
} }