You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying Nuxt 3 project to Vercel Edge function, I get an error "Could not resolve a fetch() method, you should provide one". I managed to fix this by setting up Villus like this:
By passing fetch to renamed fetch plugin, all works. I think this shouldn't be required and is probably issue with resolveGlobalFetch function not finding Vercel fetch. I haven't figured out how to modify it tho.
The text was updated successfully, but these errors were encountered:
babyradJiri
changed the title
Deploying to Vercel Edge f
Deploying to Vercel Edge function
Mar 21, 2023
When deploying Nuxt 3 project to Vercel Edge function, I get an error "Could not resolve a fetch() method, you should provide one". I managed to fix this by setting up Villus like this:
By passing fetch to renamed fetch plugin, all works. I think this shouldn't be required and is probably issue with resolveGlobalFetch function not finding Vercel fetch. I haven't figured out how to modify it tho.
The text was updated successfully, but these errors were encountered: