Sveltekit app deployed on Cloudflare Pages causing error on refreshing page after initial load

406 Views Asked by At

While running SvelteKit app on CloudFlare Pages, it loads on the first request. When the page is refreshed then it throws an error.

  1. We are using axios in the load() function on Sveltekit to fetch data.
  2. The error in Cloudflare logs is adapter http is not available in build
  3. It works perfectly on Vercel.

Tried to change ENV loading strategy, Host on other platform.

1

There are 1 best solutions below

0
On

Using fetch instead of axios solved the error.