Add dynamic chrome options for lambda & non lambda
What's Changed
Explanation
The next-api-og-image
library was intended to be used only in cloud environments at the beginning. That is why it was not designed with mind of support for hosting on VPS / Dedicated servers. Recently, the #40 issue came up to the open and this was a opportunity to add support both server and serverless environments
From now on, the next-api-og-image
should work out of the box both on server (with chrome installed) and serverless environments. This also means that testing the application using next-api-og-image
locally with NODE_ENV
set to production will no longer throw an error regarding chrome 🚀
Acknowledgements
Thanks to @guhyeon, @mvandergrift and @kamenskiyyyy for contributing to the issue development 🤗
Full Changelog: 4.2.1...4.2.2