vercel / satori

Enlightened library to convert HTML and CSS to SVG
https://og-playground.vercel.app
Mozilla Public License 2.0
10.48k stars 229 forks source link

SVG not generating on production #617

Open Abhishek-M-K opened 1 month ago

Abhishek-M-K commented 1 month ago

Bug report

I have been trying to generate dynamic background using opengraph images in Nextjs via Satori. On production while generating the SVGs it's throwing TypeError: certificate image is not iterable

Expected Behavior

Development

On local development it's generating SVGs fine as below and this is also the expected behavior :

1

Production

On production instead of the blob SVG it's a blank background with TypeError: certificate image is not iterable :

2

Additional Info

Sharing the gist containing code for better understanding of implementation details. Gist : https://gist.github.com/Abhishek-M-K/c86d23b8efd28777e6aaa35e8d860cf8

shuding commented 1 month ago

If you don’t mind, could you share the production generated SVG file (not the screenshot but the original SVG so we can take a look)? Thanks