diff --git a/config/dev-local.js b/config/dev-local.js index dbbb234de3..6ccd13d93d 100644 --- a/config/dev-local.js +++ b/config/dev-local.js @@ -16,7 +16,7 @@ module.exports = merge(base, devVm, { gaId: 'UA-11686022-7', // dev-vm property auth0: { loginRedirectUrls: { - xOXldYg02WsLnlnn0D5xoPWI2i3aNsFD: 'https://www.dev.kiva.org/authenticate?authLevel=recent', + xOXldYg02WsLnlnn0D5xoPWI2i3aNsFD: 'https://www.development.kiva.org/authenticate?authLevel=recent', KIzjUBQjKZwMRgYSn6NvMxsUwNppwnLH: 'http://localhost:8888/ui-login?force=true', ouGKxT4mE4wQEKqpfsHSE96c9rHXQqZF: 'http://localhost:8888/ui-login?force=true', }, diff --git a/server/util/getGqlPossibleTypes.js b/server/util/getGqlPossibleTypes.js index 7e510c4b4b..bbedaad3cd 100644 --- a/server/util/getGqlPossibleTypes.js +++ b/server/util/getGqlPossibleTypes.js @@ -84,7 +84,7 @@ module.exports = function getGqlPossibleTypes(url, cache) { return tracer.trace('getGqlFragmentTypes', () => { return tracer.trace('getGqlFragmentsFromCache', () => { return getGqlPossibleTypesFromCache(cache).then(data => { - if (data.length) { + if (Object.keys(data).length) { return data; } return tracer.trace('fetchGqlFragments', () => fetchGqlPossibleTypes(url, cache)); diff --git a/src/api/HttpLink.js b/src/api/HttpLink.js index c3a22d968e..d9b8dae953 100644 --- a/src/api/HttpLink.js +++ b/src/api/HttpLink.js @@ -8,7 +8,7 @@ export default ({ fetch, apolloBatching, }) => { - const onVm = uri.indexOf('vm') > -1; + const onVm = uri.indexOf('vm') > -1 || uri.indexOf('local') > -1; const options = { uri,