Files
Saxon Fletcher cb35e1f98e chore(library): update routes, redirects, and naming (#48668)
Our UI Library registry is expanding to include blocks that go beyond UI
and in some cases focus purely on back-end. This PR is a precursor to
adding more back-end related blocks. This PR includes the `ui-library ->
library` rename plus redirects and small UI copy updates. Since this is
a rename we'll need to update Vercel configuration.

## Vercel rollout

Keep the Library project Root Directory as `apps/ui-library`

1. In the **Library** Vercel project, set:

   `NEXT_PUBLIC_BASE_PATH=/library`

Apply it to Preview and Production, then redeploy the Library project.

2. In the **www** Vercel project, add:

`NEXT_PUBLIC_LIBRARY_URL=<current value of NEXT_PUBLIC_UI_LIBRARY_URL>`

Apply it to Preview and Production. Keep `NEXT_PUBLIC_UI_LIBRARY_URL`
during the migration, then redeploy the www project.

3. Deploy in this order:

   1. Library project
   2. www project

4. Validate:

   - `/library`
   - `/library/docs/nextjs/password-based-auth`
   - `/ui` redirects to `/library`
- `/ui/docs/nextjs/password-based-auth` redirects to
`/library/docs/nextjs/password-based-auth`
- `/ui/docs/ai-editors-rules/*` still uses its existing Docs redirects

No Vercel dashboard redirect rules are needed. Environment-variable
changes require a new deployment.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Supabase UI Library has been renamed to **Supabase Library** across
navigation, pages, documentation, and resource links.
* The Library is now available at `/library`, with updated descriptions
covering components, blocks, and developer tools.
* **Bug Fixes**
* Added permanent redirects from legacy `/ui` URLs to corresponding
`/library` paths.
* Updated links throughout the site and documentation to prevent broken
navigation and references.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-11 13:37:32 +10:00

215 lines
3.9 KiB
TypeScript

import {
appTypeSolutions,
migrationSolutions,
skillBasedSolutions,
useCaseSolutions,
} from 'data/Solutions'
import { PrivacySettings } from 'ui-patterns/PrivacySettings'
const footerData = [
{
title: 'Product',
links: [
{
text: 'Pricing',
url: '/pricing',
},
{
text: 'Database',
url: '/database',
},
{
text: 'Auth',
url: '/auth',
},
{
text: 'Functions',
url: '/edge-functions',
},
{
text: 'Realtime',
url: '/realtime',
},
{
text: 'Storage',
url: '/storage',
},
{
text: 'Vector',
url: '/modules/vector',
},
{
text: 'Cron',
url: '/modules/cron',
},
{
text: 'Feature Catalog',
url: '/features',
},
{
text: 'Launch Week',
url: '/launch-week',
},
],
},
{
title: 'Solutions',
links: [
...skillBasedSolutions.solutions.map((solution) => ({
text: solution.text,
url: solution.url,
})),
...useCaseSolutions.solutions.map((solution) => ({
text: solution.text,
url: solution.url,
})),
...appTypeSolutions.solutions.map((solution) => ({
text: solution.text,
url: solution.url,
})),
...migrationSolutions.solutions.map((solution) => ({
text: solution.text,
url: solution.url,
})),
],
},
{
title: 'Resources',
links: [
{
text: 'Blog',
url: '/blog',
},
{
text: 'Support',
url: '/support',
},
{
text: 'System Status',
url: 'https://status.supabase.com/',
},
{
text: 'Become a Partner',
url: '/partners',
},
{
text: 'Partner Catalog',
url: '/partners/catalog',
},
{
text: 'Brand Assets',
url: '/brand-assets',
},
{
text: 'Security & Compliance',
url: '/security',
},
{
text: 'SOC2',
url: '/security',
},
{
text: 'HIPAA',
url: 'https://forms.supabase.com/hipaa2',
},
],
},
{
title: 'Developers',
links: [
{
text: 'Documentation',
url: '/docs',
},
{
text: 'Supabase Library',
url: 'https://supabase.com/library',
},
{
text: 'Changelog',
url: '/changelog',
},
{
text: 'RSS',
url: '/rss.xml',
},
],
},
{
title: 'Community',
links: [
{
text: 'Events & Webinars',
url: '/events',
},
{
text: 'SupaSquad',
url: '/supasquad',
},
{
text: 'Contributing',
url: 'https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md',
},
{
text: 'Open Source',
url: '/open-source',
},
{
text: 'DevTo',
url: 'https://dev.to/supabase',
},
],
},
{
title: 'Company',
links: [
{
text: 'Company',
url: '/company',
},
{
text: 'Careers',
url: '/careers',
},
{
text: 'General Availability',
url: '/ga',
},
{
text: 'Legal Hub',
url: '/legal',
},
{
text: 'Privacy Policy',
url: '/privacy',
},
{
text: 'Privacy Settings',
component: PrivacySettings,
},
{
text: 'Acceptable Use Policy',
url: '/aup',
},
{
text: 'Humans.txt',
url: '/humans.txt',
},
{
text: 'Lawyers.txt',
url: '/lawyers.txt',
},
{
text: 'Security.txt',
url: '/.well-known/security.txt',
},
{
text: 'Contact Us',
url: '/contact-us',
},
],
},
]
export default footerData