Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow adapters for axios requests #76

Open
richardhunghhw opened this issue Aug 16, 2023 · 0 comments
Open

Feature Request: Allow adapters for axios requests #76

richardhunghhw opened this issue Aug 16, 2023 · 0 comments

Comments

@richardhunghhw
Copy link

richardhunghhw commented Aug 16, 2023

Feature Request

Allow adapters for axios requests

The Problem:

The SDK currently uses axios with its default adapter to make requests. However in serverless environments (Cloudflare Pages in my scenario), axios with XMLHTTPRequest is not always an option, see this. Instead the Fetch API should be used.

Solution

Axios allows the introduction of adapters as part of its request config. This option simply needs to be exposed. Exisiting adapters such as @vespaiach/axios-fetch-adapter can be used directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant