Skip to content

fix: next.js generateMetadata example code - #305

Merged
stephancill merged 1 commit into
framesjs:devfrom
jereldlimjy:main
Apr 12, 2024
Merged

fix: next.js generateMetadata example code#305
stephancill merged 1 commit into
framesjs:devfrom
jereldlimjy:main

Conversation

@jereldlimjy

Copy link
Copy Markdown
Contributor

Change Summary

In the Next.js App Router integration reference, the data awaited from fetchMetadata in the generateMetadata() function is not put under the other attribute, causing errors when rendering the frame. Fixed by following the format found in the Quickstart guide.

Merge Checklist

  • PR has a Changeset
  • PR includes documentation if necessary
  • PR updates the boilerplates if necessary

@vercel

vercel Bot commented Apr 11, 2024

Copy link
Copy Markdown

@jereldlimjy is attempting to deploy a commit to the Discove Team on Vercel.

A member of the Team first needs to authorize it.

@stephancill
stephancill changed the base branch from main to dev April 12, 2024 08:35

@stephancill stephancill left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@stephancill
stephancill merged commit a6b1466 into framesjs:dev Apr 12, 2024
stephancill added a commit that referenced this pull request Apr 12, 2024
* 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)

---------

Co-authored-by: Michal Kvasničák <michal.kvasnicak@gmail.com>
Co-authored-by: Jereld Lim <jereldlimjy@hotmail.com>
stephancill added a commit that referenced this pull request Apr 15, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants