Open rawkode opened 1 week ago
Both plugins fail due to an incompatibility regarding SSR:
https://github.com/delucis/astro-og-canvas#readme
01:12:20 [ERROR] [vite] x Build failed in 159ms
[commonjs--resolver] [plugin vite:resolve] Cannot bundle Node.js built-in "node:fs/promises" imported from "node_modules/astro-og-canvas/dist/generateOpenGraphImage.js". Consider disabling ssr.noExternal or remove
the built-in dependency.
https://github.com/shepherdjerred/astro-opengraph-images
24:58:49 [ERROR] [vite] x Build failed in 1.23s
[commonjs--resolver] [plugin vite:resolve] Cannot bundle Node.js built-in "fs" imported from "node_modules/astro-opengraph-images/dist/util.js". Consider disabling ssr.noExternal or remove the built-in dependency.
Searching for a fix / alternative later :)
I will try to contribute the static
render capable og images
https://arne.me/blog/static-og-images-in-astro is the way to go for our use case