OP-Engineering / link-preview-js

⛓ Extract web links information: title, description, images, videos, etc. [via OpenGraph], runs on mobiles and node.
MIT License
770 stars 124 forks source link

I'm using Sveltekit - working perfectly in Netlify but not in CloudFlare Pages #116

Closed SeventhScepter closed 2 years ago

SeventhScepter commented 2 years ago

Describe the bug I'm using Sveltekit library. And, I do have endpoints setup. When I trigger /api/generate-previews.js, that's the endpoint where the link-preview-js is gonna do the magic. All is working locally and even in Netlify. But when I transfered to CloudFlare Pages, the endpoint is already not working.

By the way, the error in the .catch is empty.

To Reproduce Steps to reproduce the behavior: Just create a simple Sveltekit demo. Add the link-preview-js in one of your endpoints, then try deploying it to CloudFlare pages.

ospfranco commented 2 years ago

If the library is working correctly in your local environment then this is not a bug with the library. Better if you ask on Stack Overflow.