Files
supabase/apps/docs/features/IaNav/option1/selfHosting.ts
Miranda Limonczenko 7636e18f8d docs: shorten and sentence-case the Option 1 sidebar labels (#53880)
Part of DOCS-1737

## Problem

People who tried the Option 1 navigation reported labels that wrap onto
two lines, such as "Architecture, limits and pricing". The old
35-character limit let that label through at 32 characters.

They also reported labels that aren't in sentence case, such as
"Framework Quickstarts" and "ORM Quickstarts". The docs style guide asks
for sentence case.

## Solution

- **28-character limit, enforced.** A new test in `option1.test.ts`
fails on any Option 1 sidebar label over 28 characters. 97 labels were
over the limit. They're shortened.
- **Sentence case.** About 120 more labels are recased. Proper nouns and
product feature names keep their capitals, such as Edge Functions, Row
Level Security and Auth Hooks. "Self-Hosting" becomes "Self-hosting" in
the top nav and the sidebar title.
- **Parallel Start labels.** "Web app demos" becomes "Web app
tutorials", to match "Mobile tutorials".
- **Build becomes Products.** The tree test ran each candidate label
against the shipped Option 1 tree, with 93 tasks and 3 runs each.
Products raised direct success from 51% to 59%, and first clicks on the
right section from 78% to 88%.
- **Test fixtures.** `DocsSidebarNav.test.tsx` and the level-size
allowlist reference labels by name, so they change too.


## Manual testing

1. Open [Getting started with Option 1 on the
preview](https://docs-git-docs-nav-label-casing-supabase.vercel.app/docs/guides/getting-started?docs-ia-mvp-v1=option-1).
The sidebar shows "Framework quickstarts" and "Web app tutorials".
2. Run `pnpm run -F docs test:local:unwatch features/IaNav
components/Navigation`. Expect all tests to pass.
2026-11-30 11:00:01 -08:00

124 lines
4.2 KiB
TypeScript

import type { NavMenuConstant } from '@/components/Navigation/Navigation.types'
export const selfHosting: NavMenuConstant = {
title: 'Self-hosting',
icon: 'self-hosting',
url: '/guides/self-hosting',
items: [
{ name: 'Deploy with Docker', url: '/guides/self-hosting/docker' },
{
name: 'Keys, HTTPS and Postgres',
items: [
{ name: 'Accessing Postgres', url: '/guides/self-hosting/accessing-postgres' },
{ name: 'Configure API keys', url: '/guides/self-hosting/self-hosted-auth-keys' },
{ name: 'API gateway', url: '/guides/self-hosting/self-hosted-envoy' },
{
name: 'Add reverse proxy with HTTPS',
url: '/guides/self-hosting/self-hosted-proxy-https',
},
{ name: 'Remove superuser access', url: '/guides/self-hosting/remove-superuser-access' },
],
},
{
name: 'Update and upgrade',
items: [
{ name: 'Update your deployment', url: '/guides/self-hosting/updating' },
{ name: 'Upgrade to Postgres 17', url: '/guides/self-hosting/postgres-upgrade-17' },
],
},
{
name: 'Configure Auth',
items: [
{ name: 'Social sign-in (OAuth)', url: '/guides/self-hosting/self-hosted-oauth' },
{
name: 'Configure custom OAuth/OIDC',
url: '/guides/self-hosting/self-hosted-custom-oauth-providers',
},
{
name: 'Phone sign-in and MFA',
url: '/guides/self-hosting/self-hosted-phone-mfa',
},
{ name: 'Add custom email templates', url: '/guides/self-hosting/custom-email-templates' },
{ name: 'Configure Auth Hooks', url: '/guides/self-hosting/self-hosted-auth-hooks' },
{ name: 'Configure passkeys', url: '/guides/self-hosting/self-hosted-passkeys' },
{ name: 'Configure SAML 2.0 SSO', url: '/guides/self-hosting/self-hosted-saml-sso' },
{
name: 'Configure OAuth 2.1 Server',
url: '/guides/self-hosting/self-hosted-oauth-server',
},
],
},
{
name: 'Services and extensions',
items: [
{ name: 'Run Edge Functions', url: '/guides/self-hosting/self-hosted-functions' },
{ name: 'Configure S3 Storage', url: '/guides/self-hosting/self-hosted-s3' },
{ name: 'Enable MCP server', url: '/guides/self-hosting/enable-mcp' },
{
name: 'Build custom extensions',
url: '/guides/self-hosting/custom-postgres-extensions',
},
],
},
{
name: 'Move from Supabase Cloud',
items: [
{
name: 'Restore a Cloud project',
url: '/guides/self-hosting/restore-from-platform',
},
{ name: 'Copy Storage from Cloud', url: '/guides/self-hosting/copy-from-platform-s3' },
],
},
{
name: 'Service reference',
items: [
{
name: 'Auth Server',
items: [
{ name: 'Auth Server reference', url: '/reference/self-hosting-auth/introduction' },
{ name: 'Auth Server configuration', url: '/guides/self-hosting/auth/config' },
],
},
{
name: 'Storage Server',
items: [
{
name: 'Storage Server reference',
url: '/reference/self-hosting-storage/introduction',
},
{ name: 'Storage Server configuration', url: '/guides/self-hosting/storage/config' },
],
},
{
name: 'Realtime Server',
items: [
{
name: 'Realtime Server reference',
url: '/reference/self-hosting-realtime/introduction',
},
{ name: 'Realtime configuration', url: '/guides/self-hosting/realtime/config' },
],
},
{
name: 'Analytics Server',
items: [
{
name: 'Analytics Server reference',
url: '/reference/self-hosting-analytics/introduction',
},
{
name: 'Analytics configuration',
url: '/guides/self-hosting/analytics/config',
},
],
},
{
name: 'Functions Server reference',
url: '/reference/self-hosting-functions/introduction',
},
],
},
],
}