export default function getBaseUrl() {
  const inDevelopment = window.location.hostname === 'localhost';
  return inDevelopment ? 'http://localhost:3001/' : '/';
}

export default function getBaseUrl() {
  const inDevelopment = window && window.location.hostname === 'localhost';
  return inDevelopment ? 'http://localhost:3001/' : '/';
}

Fix window check to work on CI server
Fix window check to work on CI server
