text: import Axios from 'axios';
  import Cookies from 'js-cookie';
  
  let version = 'v1';
  
  let urls = {
      test: 'http://api.autokueng.ch:8000/api/' + version, // test on kubernetes kind cluster locally
      development: 'http://localhost:8000/api/' + version, // local development
      production: 'https://api.autokueng.ch/api/' + version, // production
  }
  
  let Api = Axios.create({
      baseURL: urls[process.env.NEXT_PUBLIC_BACKEND_URL], 
      headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json'
      }
  });
  
  const token = Cookies.get('token');
  if(token) {
      Api.defaults.headers.common['Authorization'] = `Bearer ${token}`;
  }
  
  export default Api;