Skip to content

Commit

Permalink
Merge pull request #155 from qccoders/location-hotfix
Browse files Browse the repository at this point in the history
Location hotfix
  • Loading branch information
jpdillingham authored Sep 15, 2018
2 parents 3c32b2f + 91628b8 commit 8362171
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/src/environments.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

export const PROD = {
name: 'prod',
hostname: 'qcvoc.qccoders.org',
hostname: 'qcvoc-prod.s3-website-us-east-1.amazonaws.com',
apiRoot: 'https://4olgsguu53.execute-api.us-east-1.amazonaws.com/prod/api',
color: 'primary',
}

export const DEV = {
name: 'dev',
hostname: 'dev.qcvoc.qccoders.org',
hostname: 'qcvoc-dev.s3-website-us-east-1.amazonaws.com',
apiRoot: 'https://p0krgyy73g.execute-api.us-east-1.amazonaws.com/dev/api',
color: 'default',
}
2 changes: 0 additions & 2 deletions web/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export const sortByProp = (prop, predicate = 'asc') => {
}

export const getEnvironment = () => {
console.log(window.location.hostname)
console.log(PROD.hostname);
if (window.location.hostname !== PROD.hostname) {
return DEV;
}
Expand Down

0 comments on commit 8362171

Please sign in to comment.