diff --git a/apps/landing/public/.well-known/api-catalog b/apps/landing/public/.well-known/api-catalog new file mode 100644 index 00000000..14060152 --- /dev/null +++ b/apps/landing/public/.well-known/api-catalog @@ -0,0 +1,37 @@ +{ + "linkset": [ + { + "anchor": "https://enscomponents.com/", + "service-desc": [ + { + "href": "https://enscomponents.com/.well-known/openapi.yaml", + "type": "application/openapi+yaml" + } + ], + "service-doc": [ + { + "href": "https://enscomponents.com/", + "type": "text/html", + "title": "ENS Components interactive docs and playground" + } + ], + "service-meta": [ + { + "href": "https://enscomponents.com/llms.txt", + "type": "text/plain", + "title": "LLM-friendly summary" + }, + { + "href": "https://enscomponents.com/llms-full.txt", + "type": "text/plain", + "title": "LLM full API reference" + }, + { + "href": "https://enscomponents.com/.well-known/ai-plugin.json", + "type": "application/json", + "title": "AI plugin manifest" + } + ] + } + ] +} diff --git a/apps/landing/src/components/SEO.tsx b/apps/landing/src/components/SEO.tsx index 5752e87c..f1099c64 100644 --- a/apps/landing/src/components/SEO.tsx +++ b/apps/landing/src/components/SEO.tsx @@ -56,6 +56,7 @@ export function SEO({ {/* AI / LLM discovery — llms.txt files are alternate text representations of this page */} + diff --git a/vercel.json b/vercel.json new file mode 100644 index 00000000..18da8276 --- /dev/null +++ b/vercel.json @@ -0,0 +1,35 @@ +{ + "headers": [ + { + "source": "/", + "headers": [ + { + "key": "Link", + "value": "; rel=\"api-catalog\"; type=\"application/linkset+json\"; profile=\"https://www.rfc-editor.org/info/rfc9727\", ; rel=\"alternate\"; type=\"text/plain\"; title=\"LLM-friendly summary\", ; rel=\"alternate\"; type=\"text/plain\"; title=\"LLM full API reference\", ; rel=\"service-desc\"; type=\"application/openapi+yaml\"" + } + ] + }, + { + "source": "/index.html", + "headers": [ + { + "key": "Link", + "value": "; rel=\"api-catalog\"; type=\"application/linkset+json\"; profile=\"https://www.rfc-editor.org/info/rfc9727\", ; rel=\"alternate\"; type=\"text/plain\"; title=\"LLM-friendly summary\", ; rel=\"alternate\"; type=\"text/plain\"; title=\"LLM full API reference\", ; rel=\"service-desc\"; type=\"application/openapi+yaml\"" + } + ] + }, + { + "source": "/.well-known/api-catalog", + "headers": [ + { + "key": "Content-Type", + "value": "application/linkset+json; profile=\"https://www.rfc-editor.org/info/rfc9727\"" + }, + { + "key": "Link", + "value": "; rel=\"api-catalog\"; type=\"application/linkset+json\"; profile=\"https://www.rfc-editor.org/info/rfc9727\"" + } + ] + } + ] +}