mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
I added an AI catalog pointer to the homepage, following agentready.org practice AR-FIND-04: a `<link rel="ai-catalog">` tag in the head and a matching entry in the existing `Link` header on `/`. I also bumped the MCP server card from 0.15.0 to 0.16.1, the latest `@supabase/mcp-server-supabase` release. **Note:** Both point at `/.well-known/ai-catalog.json`, the path the spec names, which is our rewrite alias for `ard.json`. ## To test Tested on the PR preview: - [x] `curl -sI <preview>/`, expect a `link` header carrying both `rel="api-catalog"` and `rel="ai-catalog"` - [x] `curl -s <preview>/`, expect `<link rel="ai-catalog" href="/.well-known/ai-catalog.json"/>` before `</head>` - [x] `curl -s <preview>/.well-known/mcp/server-card.json`, expect `"version": "0.16.1"` ## Linear - fixes GROWTH-1469
77 lines
2.5 KiB
TypeScript
77 lines
2.5 KiB
TypeScript
import type { Metadata } from 'next'
|
|
|
|
import { FrameworksSection } from './_components/FrameworksSection'
|
|
import { HomeContent } from './_components/HomeContent'
|
|
import { DEFAULT_META_DESCRIPTION } from '@/lib/constants'
|
|
import {
|
|
organizationSchema,
|
|
serializeJsonLd,
|
|
serviceSchema,
|
|
softwareApplicationSchema,
|
|
websiteSchema,
|
|
} from '@/lib/json-ld'
|
|
import { mdAlternates } from '@/lib/md-alternates'
|
|
|
|
export const metadata: Metadata = {
|
|
alternates: {
|
|
...mdAlternates('index'),
|
|
canonical: 'https://supabase.com',
|
|
},
|
|
// These meta tag are required for Bing and Yandex webmaster verification. Do not remove.
|
|
other: {
|
|
'msvalidate.01': '92FBA8A0D370D71480454DBEAB37D0AE',
|
|
'yandex-verification': '5e1de4f569de9cff',
|
|
},
|
|
}
|
|
|
|
export default function HomePage() {
|
|
return (
|
|
<>
|
|
<link rel="ai-catalog" href="/.well-known/ai-catalog.json" />
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{ __html: serializeJsonLd(organizationSchema()) }}
|
|
/>
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{ __html: serializeJsonLd(websiteSchema()) }}
|
|
/>
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{
|
|
__html: serializeJsonLd(
|
|
softwareApplicationSchema({
|
|
name: 'Supabase',
|
|
description: DEFAULT_META_DESCRIPTION,
|
|
url: 'https://supabase.com',
|
|
image: 'https://supabase.com/images/og/supabase-og.png',
|
|
})
|
|
),
|
|
}}
|
|
/>
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{
|
|
__html: serializeJsonLd(
|
|
serviceSchema({
|
|
name: 'Supabase',
|
|
description: DEFAULT_META_DESCRIPTION,
|
|
url: 'https://supabase.com',
|
|
serviceType: 'Postgres development platform',
|
|
offerings: [
|
|
{ name: 'Database', url: 'https://supabase.com/database' },
|
|
{ name: 'Authentication', url: 'https://supabase.com/auth' },
|
|
{ name: 'Storage', url: 'https://supabase.com/storage' },
|
|
{ name: 'Edge Functions', url: 'https://supabase.com/edge-functions' },
|
|
{ name: 'Realtime', url: 'https://supabase.com/realtime' },
|
|
{ name: 'Vector', url: 'https://supabase.com/modules/vector' },
|
|
],
|
|
})
|
|
),
|
|
}}
|
|
/>
|
|
<HomeContent frameworksSlot={<FrameworksSection />} />
|
|
</>
|
|
)
|
|
}
|