Open RProduction opened 10 months ago
Hi @RProduction,
Have you already tried using an axios adapter for your edge environment?
You can find some infos on how to set your own axios adapter in this thread.
contenful.js
should not use Axios and instead use fetch directly or another library to support Edge Workers like Vercel Edge Functions or Cloudflare Workers
Super confused about how to get the previewClient to work on edge runtime. I tried all the suggestions but it just fetches the original blog post.
Expected Behavior
It should return entry object
Actual Behavior
Console log shows [Error: Adapter 'http' is not available in the build]
Possible Solution
Provide fetch API from contentful library
Steps to Reproduce
Context
Environment