-
Notifications
You must be signed in to change notification settings - Fork 27.1k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Metadata API Not Working #46875
Comments
The reproduction is private, and no environment information was provided |
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
In the latest version of Next.js at least you can add |
Do you mean add image in the openGraph object like this? export const metadata: Metadata = {
title: 'Web3 Hack Statistics, Hackerboard - QuillAudits',
description:
'Get statistics and deep analysis of recent crypto hacks, vulnerabilities, and attack vectors around the web3 world.',
openGraph: {
title: 'Web3 Hack Statistics, Hackerboard - QuillAudits',
url: 'https://www.quillaudits.com/tools/hackerboard',
description:
'Get statistics and deep analysis of recent crypto hacks, vulnerabilities, and attack vectors around the web3 world.',
image: 'https://quillaudits.com/api/og?amount=6B&number=1000',
images: [
{
url: 'https://quillaudits.com/api/og?amount=6B&number=1000',
secureUrl: 'https://quillaudits.com/api/og?amount=6B&number=1000',
alt: 'Web3 Hack Statistics, Hackerboard - QuillAudits',
width: 1200,
height: 630,
type: 'image/png',
},
],
locale: 'en-US',
type: 'website',
},
alternates: {
canonical: 'https://www.quillaudits.com/tools/hackerboard',
},
twitter: {
card: 'summary_large_image',
title: 'Web3 Hack Statistics, Hackerboard - QuillAudits',
description:
'Get statistics and deep analysis of recent crypto hacks, vulnerabilities, and attack vectors around the web3 world.',
creator: '@QuillAudits',
images: ['https://quillaudits.com/api/og?amount=6B&number=1000'],
},
robots: {
index: true,
},
}; |
@rohanreddy888 please make your repo public. 🙏 (or create a minimal public reproduction). |
Hey @balazsorban44 , I have tried to create a new next project and add the metadata its working. But its not working on my current project. |
Doesn't that confirm it's your code's bug and not a Next.js bug? |
Nope that doesn't answer there should be some error show where the issue is and why its not working. |
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI Emoji";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
-->Ok understand Je suis Francisco, le staticien De : Rohan ReddyEnvoyé le :mardi 7 mars 2023 16:45À : vercel/next.jsCc : SubscribedObjet :Re: [vercel/next.js] Metadata API Not Working (Issue ***@***.*** please make your repo public. 🙏 (or create a minimal public reproduction).Hey @balazsorban44 , I have tried to create a new next project and add the metadata its working. But its not working on my current project.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
After 5 hours of debugging found the problem with the my custom tracking code i had in the project once i removed it its working fine now. But dont know how that is connected to the Metadata API. If you guys have any idea reply here. Thank you. |
Do you think this could be at all related to #46899? |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Verify canary release
Provide environment information
I have added the Metadata OG in the page.tsx the content of the data and not showing on any of the OG Checkers.
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Metadata (metadata, generateMetadata, next/head, head.js)
Link to the code that reproduces this issue
https://github.com/Quillhash/QuillAudits-next-js
To Reproduce
Describe the Bug
I have added the Metadata OG in the page.tsx the content of the data and not showing on any of the OG Checkers.
Expected Behavior
The contents of the Meta tag should showup in the https://www.opengraph.xyz/
Which browser are you using? (if relevant)
Brave
How are you deploying your application? (if relevant)
Vercel
The text was updated successfully, but these errors were encountered: