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

Need axiosAdapter for Fetch to use on Cloudflare Workers #228

Open
isaacrowntree opened this issue Jan 15, 2025 · 0 comments
Open

Need axiosAdapter for Fetch to use on Cloudflare Workers #228

isaacrowntree opened this issue Jan 15, 2025 · 0 comments

Comments

@isaacrowntree
Copy link

isaacrowntree commented Jan 15, 2025

Description

Typesense Client https://github.com/typesense/typesense-js/releases/tag/v2.0.0-14 has support for the axiosAdapter without which the older client version is currently breaking our Cloudflare Worker react-instantsearch-nextjs functionality. This adapter uses the older v1 client.

Steps to reproduce

When using the react-instantsearch-nextjs adapter on Cloudflare Workers you see this error message:

Screenshot 2025-01-15 at 1 25 03 pm

This is because it uses standard Axios in the background instead of Axios Fetch. I need it to use Axios Fetch.

Expected Behavior

I want SSR rendering on NextJS Cloudflare Pages. Without it none of our page links work because our routing logic isn't being picked up. I expect the nextjs adapter to read our page routes and be search engine friendly.

Actual Behavior

I am seeing an error message on Cloudflare Pages when trying to load search.

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