nuxt-modules / algolia

🔎 Algolia module for Nuxt
https://algolia.nuxtjs.org/
MIT License
185 stars 32 forks source link

Netlify edge build SSR request fails #196

Open plexus77 opened 3 months ago

plexus77 commented 3 months ago

Version

@nuxtjs/algolia: 1.10.2 nuxt: 3.11.2

Reproduction Link

Don;t have time to reproduce on netlify and have fixed the issue since then

Steps to reproduce

Use one of the composables useAlgoliaSearch to perform a search, locally works fine. On netlify SSR fails but client side works.

What is Expected?

SSR Works

What is actually happening?

Not sure what is going on internally with the requests but putting the useFetch config option to true fixes the issue.

Wasn't sure if this is a bug in the module or underlying algolia library but it took me a while to figure out so thought I would put it here.

Baroshem commented 3 months ago

Hey Buddy,

Thanks for reporting this issue.

However, I am not sure if I will be able to help. Could you provide more details like reproduction link or at least the error your got?

Then, I will be happy to help :)