Files
supabase/apps/www/pages/legal/index.tsx
claude[bot]andClaude 7637c6d5ee docs(www): update SLA agreement reference and hide from Legal Hub (#53618)
<!-- claude-slack-attribution -->
_Requested by **Nicole Kramer** · [Slack
thread](https://supabase.slack.com/archives/C0161K73J1J/p1795012270095809)_

**Before:** The SLA page (`/sla`) opened by incorporating "the
Subscription Agreement between Supabase, Inc. and Customer" for
"Enterprise Customers", and it was listed under Customer Legal Resources
on the Legal Hub and indexable by search engines.

**After:** The SLA page incorporates the Enterprise SaaS Subscription
Agreement (linked at https://supabase.com/enterprise-terms, or such
other agreement entered into between Supabase and Customer) and applies
to "Customers subscribed to an Enterprise Plan". The page is no longer
listed on the Legal Hub and is `noindex, nofollow`, so it is reachable
only by direct URL, like `/enterprise-terms`.

Updates the SLA preamble wording as provided by Legal and hides `/sla`
from the Legal Hub and search engines.

## Solution

- `apps/www/data/legal/sla/v1.mdx`: replaced the opening paragraph with
Legal's wording. The text is unchanged except that the quoted term uses
straight quotes (`the "Agreement"`) to match the rest of the file. The
URL is a bare URL, which remark-gfm autolinks, the same way
`enterprise-terms` MDX does. The SLA is a single `v1.mdx` with no
version selector or effective date, so it is edited in place and no
versioning is introduced.
- `apps/www/pages/legal/index.tsx`: removed the SLA entry from the
Customer Legal Resources links, the same way `/enterprise-terms` is
absent from the hub.
- `apps/www/pages/sla.tsx`: added `noindex: true` and `nofollow: true`
to the `NextSeo` meta, plus a short comment matching the one in
`supplemental-terms.tsx`.
- `apps/www/next.config.mjs`: added an `X-Robots-Tag: noindex, nofollow`
header rule for `/sla`, next to the existing `/enterprise-terms` rule.

Other pages that link to `/sla` (the Support Policy and a few docs
guides) are intentionally unchanged, since direct links keep working.
`generate-sitemap.mjs` has no exclusion for `/enterprise-terms`, so none
was added for `/sla` either.

## Review instructions

1. Open `/legal` on the preview and confirm Service Level Agreement is
no longer listed under Customer Legal Resources.
2. Open `/sla` on the preview and confirm the first paragraph matches
the new wording and that "https://supabase.com/enterprise-terms" is a
working link.
3. Check the `/sla` response has `X-Robots-Tag: noindex, nofollow` and
the page has a `noindex, nofollow` robots meta tag.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

---
_Generated by [Claude
Code](https://claude.ai/code/session_01VBvtQVPkbcDz2ojrwur2SF)_

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
2026-11-19 12:12:17 +00:00

115 lines
3.4 KiB
TypeScript

import DefaultLayout from '~/components/Layouts/Default'
import SectionContainer from '~/components/Layouts/SectionContainer'
import PageHeader from '~/components/Sections/PageHeader'
import { FileText, List } from 'lucide-react'
import { NextSeo } from 'next-seo'
import Link from 'next/link'
const sections = [
{
id: 'customer-legal-resources',
title: 'Customer Legal Resources',
links: [
{
label: 'Terms of Service',
href: '/terms',
type: 'document' as const,
},
{
label: 'Support Policy',
href: '/support-policy',
type: 'document' as const,
},
{
label: 'Business Associate Agreement',
href: '/legal/customer-resources/business-associate-agreement',
type: 'document' as const,
},
],
},
{
id: 'privacy-resources',
title: 'Privacy Resources',
links: [
{
label: 'Data Processing Addendum',
href: '/legal/customer-resources/data-processing-addendum',
type: 'document' as const,
},
{
label: 'Subprocessor List',
href: '/legal/customer-resources/subprocessor-list',
type: 'document' as const,
},
{
label: 'Data Residency and Transfers FAQ',
href: '/legal/privacy-resources/data-residency-and-transfers-faq',
type: 'document' as const,
},
{
label: 'Candidate Privacy Notice',
href: '/legal/privacy-resources/candidate-privacy-notice',
type: 'document' as const,
},
],
},
{
id: 'partner-legal-resources',
title: 'Partner Legal Resources',
links: [
{
label: 'Master Partner Program Agreement',
href: '/legal/partner-resources/master-partner-program-agreement',
type: 'document' as const,
},
{
label: 'Program Addenda',
href: '/legal/partner-resources/program-addenda',
type: 'index' as const,
},
],
},
]
const linkIcons = {
document: FileText,
index: List,
}
export default function LegalHubPage() {
return (
<DefaultLayout>
<NextSeo title="Legal Hub" description="Supabase legal documents and resources." />
<PageHeader
h1="Legal Hub"
subheader="Legal documents and resources for Supabase customers and partners."
/>
<SectionContainer className="prose">
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-16">
{sections.map((section) => (
<section key={section.title} id={section.id} className="scroll-mt-24">
<h2 className="mt-0">{section.title}</h2>
<div className="divide-y divide-border">
{section.links.map((link) => {
const Icon = linkIcons[link.type]
return (
<div key={link.href} className="flex items-center gap-3 py-4">
<Icon size={15} className="shrink-0 text-foreground-muted" />
<Link
href={link.href}
className="text-foreground-light transition-colors hover:text-foreground hover:underline"
>
{link.label}
</Link>
</div>
)
})}
</div>
</section>
))}
</div>
</SectionContainer>
</DefaultLayout>
)
}