Skip to content

Commit

Permalink
Removed references to deprecated environments. Resolves #863.
Browse files Browse the repository at this point in the history
  • Loading branch information
MillenniumFalconMechanic authored and NoopDog committed May 8, 2021
1 parent 0981ece commit fd18e9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/utils/environment/environment-url.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
export const EnvironmentUrl = {
"LOCAL": "http://localhost:8000/",
"PROD": "https://data.humancellatlas.org/",
"STAGING": "https://staging.data.humancellatlas.org/"
"STAGING": "https://dev.singlecell.gi.ucsc.edu/"
};
28 changes: 2 additions & 26 deletions src/utils/environment/environment.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ export function getDefaultCatalog() {
return process.env.GATSBY_DEFAULT_CATALOG;
}

/**
* Returns true if the current environment is dev.
*/
export function isDev() {

return GATSBY_ENV === "DEV";
}

/**
* Returns true if the current environment is local.
*/
Expand All @@ -55,14 +47,6 @@ export function isLocal() {
return GATSBY_ENV === "LOCAL";
}

/**
* Returns true if the current environment is integration.
*/
export function isIntegration() {

return GATSBY_ENV === "INTEGRATION";
}

/**
* Returns true if the current environment is production.
*/
Expand All @@ -80,17 +64,9 @@ export function isStaging() {
}

/**
* Returns true if the current environment is ux-dev.
*/
export function isUXDev() {

return GATSBY_ENV === "UX_DEV";
}

/**
* Returns true if the current environment is either local, dev, ux-dev, integration or staging.
* Returns true if the current environment is either local or staging.
*/
export function isTestEnvironment() {

return isLocal() || isDev() || isUXDev() || isIntegration() || isStaging();
return isLocal() || isStaging();
}

0 comments on commit fd18e9b

Please sign in to comment.