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

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

Call window as global so it works on Node
Call window as global so it works on Node
