feat: add frames.js:version meta tag to frame response - #302
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
f679004 to
19806e3
Compare
| : {}; | ||
|
|
||
| const metadata: FrameFlattened = { | ||
| [`og:image`]: frame.ogImage || frame.image, |
There was a problem hiding this comment.
this might interfere with the generateMetadata's openGraph fields... #302
There was a problem hiding this comment.
Nope, there is no problem with that.
There was a problem hiding this comment.
Do you know how it behaves when other["og:image"] and openGraph["images"] is specified?
https://nextjs.org/docs/app/api-reference/functions/generate-metadata#opengraph
There was a problem hiding this comment.
I didn't try how it works if you use both, but it works when you supply og:image to other as well. I believe that when you do that it will overwrite the value in openGraph but I haven't tried.
In my opinion openGraph is there just to make it more convenient for developers and add some type hints.
There was a problem hiding this comment.
I think it should be really easy to try it locally with both and see how it works.
7c92008 to
755f129
Compare
* chore: move starters to templates (#300) * chore: move utils starter completely to templates * fix: utils starter is esm module, fix config * fix: use also FARCASTER_DEVELOPER_FID env variable in debugger bin * chore: remove unused command * chore: move starter to templates * chore: changeset * chore: update docs * chore: changeset * fix: typo * chore: add readme * feat: image rendering worker (#296) * feat: images worker middleware * feat: signatures, createImagesWorker * fix: types * fix: docs typo * fix: docs dead links * fix: docs typo * fix: index exports * fix: escape user provided HTML attribute values (#306) * fix: next.js generateMetadata example code (#305) * fix: cloudflare worker template start command (#308) * fix: lock next version, move react do production dependencies (#309) * feat: add frames.js:version meta tag to frame response (#302) * feat: add frames.js:version meta tag to frame response * chore: update snapshots * fix: add og:image to required properties, matching spec * fix: type checking * fix: rebuild frames.js after version bump * feat: add a test to check parsing of html escaped characters in getFrame * fix: publish-packages script --------- Co-authored-by: Michal Kvasničák <michal.kvasnicak@gmail.com> Co-authored-by: Jereld Lim <jereldlimjy@hotmail.com>
* feat: add frames.js:version meta tag to frame response * chore: update snapshots * fix: add og:image to required properties, matching spec * fix: type checking * fix: rebuild frames.js after version bump * feat: add a test to check parsing of html escaped characters in getFrame * fix: publish-packages script
* feat: add frames.js:version meta tag to frame response * chore: update snapshots * fix: add og:image to required properties, matching spec * fix: type checking * fix: rebuild frames.js after version bump * feat: add a test to check parsing of html escaped characters in getFrame * fix: publish-packages script
Change Summary
framesjs:versionmeta tag with the version in package.json to getFrameFlattenedTodo:
Merge Checklist