UNPKG

@gentrace/core

Version:
19 lines (16 loc) 493 B
import globalAxios from 'axios'; import fetchAdapter from './adapters/fetch.mjs'; let axiosWithOptionalFetch; // detect CF worker environment if (typeof process === "undefined") { axiosWithOptionalFetch = globalAxios.create({ // @ts-ignore adapter: fetchAdapter, }); } else { axiosWithOptionalFetch = globalAxios; } var axiosWithOptionalFetch$1 = axiosWithOptionalFetch; export { axiosWithOptionalFetch$1 as default }; //# sourceMappingURL=axios-instance.mjs.map