Add GEO metadata: OG tags, JSON-LD, canonical, favicon, robots, sitemap, llms.txt#57
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes every issue flagged in the GEO report for https://aipdfchat.insforge.site (GEO health 65/100, 2 urgent + 5 to-tune findings, AI footprint 0/100). All seven items land through standard Next.js App Router conventions, and every absolute URL derives from
NEXT_PUBLIC_BETTER_AUTH_URLso template forks get correct tags on their own domain with zero extra config.openGraphblock inapp/layout.tsx+app/opengraph-image.pngfile conventionSoftwareApplicationscript in the root layoutmetadataBase+alternates.canonicaltwitter.card: summary_large_image(image auto-wired from the OG file convention)app/icon.png(512x512, generated brand logo)public/llms.txtmarkdown brief for AI enginesapp/robots.ts+app/sitemap.ts(public pages only;/api/and unlisted/share/links disallowed)Test plan
npm run build—/icon.png,/opengraph-image.png,/robots.txt,/sitemap.xmlall appear in the route listcurl /robots.txtshows sitemap reference and/share/disallow🤖 Generated with Claude Code
Summary by cubic
Adds full GEO/SEO metadata to improve link previews, search indexing, and LLM discoverability. Uses the final brand logo for the favicon and OG preview. All absolute URLs are built from
NEXT_PUBLIC_BETTER_AUTH_URL.New Features
app/layout.tsx; preview image viaapp/opengraph-image.png(final brand logo).SoftwareApplicationscript injected in the root layout.app/icon.png(final brand logo).robots.txtandsitemap.xmlviaapp/robots.tsandapp/sitemap.ts; public pages only; disallow/api/and/share/.public/llms.txtwith a concise product brief.Migration
NEXT_PUBLIC_BETTER_AUTH_URLto your public base URL in all environments.Written for commit 04a92ff. Summary will update on new commits.