Why next/image breaks the check
next/image is great for your own photos, but its default behaviour is to serve a resized copy through its optimizer. The src in the HTML becomes a /_next/image address with a url parameter, not the original image address. Our crawler matches the badge by its exact image address, so the rewritten src does not match.
The badge is a small SVG that Entruv already serves at the right size, so optimising it gains nothing. Skipping the optimizer here costs you no speed. A plain img keeps the address exact and also makes the gold badge swap work, because the same address returns the new image after payment.
Prove the badge is in the HTML
The inspector and View page source answer different questions. The inspector shows the live document after your JavaScript has run. View page source shows what the server sent. The crawler sees the second. Open the live page, use View page source, and search for entruv.com.
If you find the anchor there, you are done. If you only find it in the inspector, it is added on the client, and you need to move it to a server rendered component. A common cause is a footer file marked as a client component that waits for the browser before drawing. You can also run curl against your page address from a terminal and look for the same anchor in the output.
Questions
Can I use next/image for the badge?
- Only with unoptimized set, so the src stays exactly the Entruv address. A plain img element is simpler and safer.
Does it work with the Pages Router?
- Yes. Put the anchor and img in the footer your pages share, such as in _app or a layout component, as long as the HTML is sent by the server.
My site is a static export. What do I do?
- Rebuild and redeploy after adding the footer. The crawler reads the files you have deployed, so the new footer must be in them.
Does paying change my code?
- No. The same snippet turns into the gold badge by itself after the one time $39 payment. The payment is final.
Keep reading
Get on the record
About a minute, no account and no password. Publishing is free once your badge is on your site. Upgrade once for $39 when you want the gold credential.