@vercel/og hosted on AWS
Unanswered
Eurasian Hobby posted this in #help-forum
Eurasian HobbyOP
Hello,
All of my companies infrastructure is hosted inside of AWS, is there anyway to host a very simple @vercel/og function on AWS?
Thanks
All of my companies infrastructure is hosted inside of AWS, is there anyway to host a very simple @vercel/og function on AWS?
Thanks
4 Replies
@Eurasian Hobby Hello,
All of my companies infrastructure is hosted inside of AWS, is there anyway to host a very simple @vercel/og function on AWS?
Thanks
You can use satori which is the backend of vercel/og. satori is pretty easy to use and doesn’t bind itself to any frameworks or hosting platforms, so you can use it in an express app hosted on AWS if you so wish
If you already use nextjs, then next/og should work everywhere not just on vercel
@joulev You can use satori which is the backend of vercel/og. satori is pretty easy to use and doesn’t bind itself to any frameworks or hosting platforms, so you can use it in an express app hosted on AWS if you so wish
Eurasian HobbyOP
Satori doesn't produce png's though does it. I need it to be a standard image format as emails don't support SVGs
You can use another tool to convert svg to png, e.g. https://www.npmjs.com/package/@napi-rs/image. More details in this thread https://github.com/vercel/satori/issues/235#issuecomment-1289647375