887 B
887 B
The placeholder og.grok.me card (plain utility apps)
An app with no public/og.jpg unfurls with the hosted placeholder:
https://og.grok.me/v1/card.png?host={VITE_PUBLIC_HOSTNAME}&title={APP_NAME}
The injector builds that URL — do not paste it into __root.tsx.
- Optional theme colour: set
"color": "FF4D2E"insrc/lib/og/site.json(6-digit hex,#optional). The injector appends&color=on the placeholder URL; a themed URL written into__root.tsxis stripped. Custom cards ignorecolor. - On rename, update
APP_NAME(tab title) andsite.jsontitle(share card).
Live preview emits the same tags (the preview X-Forwarded-Host is a valid
image host). On publish the request Host is enough — do not write a .env
for it. Card pixels and site.json reach the unfurl on the next deploy
(identity is baked at vite build).