Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add typescript samples on using local assets for opengraph/twitter image #64947

Open
wants to merge 3 commits into
base: canary
Choose a base branch
from

Conversation

KagamiChan
Copy link
Contributor

@KagamiChan KagamiChan commented Apr 23, 2024

What?

Adds typescript version of example code for using local assets

also corrects some other code

Why?

just notice these code snippets don't render on the website
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/opengraph-image
image

I have put the code into my project to verify no extra typescipt syntax are required to pass tsc, and notice an unused import by the way
-->

@KagamiChan KagamiChan requested review from manovotny and leerob and removed request for a team April 23, 2024 21:05
@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Apr 23, 2024
@ijjk
Copy link
Member

ijjk commented Apr 23, 2024

Allow CI Workflow Run

  • approve CI run for commit: 0931cc4

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants