Unable to read from file system in `opengraph-image.tsx` files
Unanswered
Plague posted this in #help-forum
PlagueOP
I want to put more eyes on this issue of not being able to load local assets like fonts in
Following the exact example in the documentation does not work, reading from the file system in general does not work (in this file convention).
There is an open issue right now, if any of you know of any solutions please comment on this issue, the current known workaround is to store the local assets in the
opengraph-image.tsx
files, despite the documentation showing you can.Following the exact example in the documentation does not work, reading from the file system in general does not work (in this file convention).
There is an open issue right now, if any of you know of any solutions please comment on this issue, the current known workaround is to store the local assets in the
/public
directory and fetch
the assets inside the file, which is not ideal: https://github.com/vercel/next.js/issues/77498