An `og:image` (social card) generator that is fast, browser-less (no Puppeteer), and capable of running on the edge. This package is designed to be used with Cloudflare Workers (but may be used elsewhere), with the simple API inspired by `@vercel/og`.
MIT License
194
stars
18
forks
source link
Exception "The script will never generate a response" in Remix but not a "vanilla" worker #14
You might think this is to do with some middleware from the Remix server, but I don't think so, as this also happens if you uproot everything in server.ts and replace it with the above "vanilla" code. What's going on? All I can glean from the error is that a promise is hanging and Miniflare has detected that, but I'm not sure how to prove/resolve that. Any help is greatly appreciated!
No unfortunately, I'm just hosting this route on a different worker instead. It actually makes more sense for my use case, but I kept this issue open since it's not actually resolved.
Hello, I'm getting this strange error from Miniflare when using Remix (classic compiler, template here, not Vite).
This is my entire loader (I just want to generate a small transparent image):
This works fine in a brand new worker with no framework installed, however:
You might think this is to do with some middleware from the Remix server, but I don't think so, as this also happens if you uproot everything in
server.ts
and replace it with the above "vanilla" code. What's going on? All I can glean from the error is that a promise is hanging and Miniflare has detected that, but I'm not sure how to prove/resolve that. Any help is greatly appreciated!