axios code(Working fine without next js)
let baseURL = \'http://\' + window.location.host.split(\':\')[0] + \':8001/api/\'; axios.defaults.withCredentials = true