docs(deps): install missing dependency for ogImage rendering#263
docs(deps): install missing dependency for ogImage rendering#263arashsheyda wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| }, | ||
| "devDependencies": { | ||
| "@nuxt/devtools-kit": "catalog:", | ||
| "@resvg/resvg-js": "catalog:", |
There was a problem hiding this comment.
according to the ogImage docs, this is needed for node env, for vercel edge time we need another dep https://nuxtseo.com/docs/og-image/renderers/satori#installation
are the docs running on edge?
There was a problem hiding this comment.
Docs are running on Vercel.
I wonder how we have it working now without this dependency?!
There was a problem hiding this comment.
are you sure it's working? for me when I try to access the ogImage I see 500 errors: https://comark.dev/_og/s/o_dzoei9.png

There was a problem hiding this comment.
😱 So based on Docs we need to add @resvg/resvg-wasm for Vercel, right?
There was a problem hiding this comment.
yes (if we're running on vercel edge only tho) vercel node should be fine with @resvg/resvg-js
🔗 Linked issue
❓ Type of change
📚 Description
currently if you try to access the ogImage, it's not working (500) as it's broken. this PR adds the missing dep to fix it
📝 Checklist
pnpm verifyand it passes.