Merge branch 'release/1.7.0' into rome/1.7.0
This commit is contained in:
16
env.js
16
env.js
@@ -10,6 +10,7 @@ const ENV = {
|
||||
REACT_APP_CLOUDINARY_ENDPOINT: "https://res.cloudinary.com/bodyshop",
|
||||
REACT_APP_CLOUDINARY_API_KEY: "473322739956866",
|
||||
REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS: "c_fill,h_250,w_250",
|
||||
SPLIT_API: "ts615lqgnmk84thn72uk18uu5pgce6e0l4rc",
|
||||
firebase: {
|
||||
apiKey: "AIzaSyBw7_GTy7GtQyfkIRPVrWHEGKfcqeyXw0c",
|
||||
authDomain: "imex-test.firebaseapp.com",
|
||||
@@ -29,6 +30,7 @@ const ENV = {
|
||||
"https://api.cloudinary.com/v1_1/bodyshop",
|
||||
REACT_APP_CLOUDINARY_ENDPOINT: "https://res.cloudinary.com/bodyshop",
|
||||
REACT_APP_CLOUDINARY_API_KEY: "473322739956866",
|
||||
SPLIT_API: "et9pjkik6bn67he5evpmpr1agoo7gactphgk",
|
||||
REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS: "c_fill,h_250,w_250",
|
||||
firebase: {
|
||||
apiKey: "AIzaSyAuLQR9SV5LsVxjU8wh9hvFLdhcAHU6cxE",
|
||||
@@ -43,19 +45,7 @@ const ENV = {
|
||||
};
|
||||
|
||||
function getEnvVars() {
|
||||
if (process.env.NODE_ENV === "development") return ENV.test;
|
||||
|
||||
let releaseChannel = Updates.channel;
|
||||
if (
|
||||
releaseChannel === null ||
|
||||
releaseChannel === undefined ||
|
||||
releaseChannel === ""
|
||||
)
|
||||
return ENV.test;
|
||||
if (releaseChannel.indexOf("development") !== -1) return ENV.test;
|
||||
|
||||
if (releaseChannel.indexOf("test") !== -1) return ENV.test;
|
||||
if (releaseChannel.indexOf("default") !== -1) return ENV.prod;
|
||||
if (Updates.channel !== "production") return ENV.test;
|
||||
else return ENV.prod;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user