mirror of
https://github.com/supabase/supabase.git
synced 2026-09-06 09:59:03 +08:00
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 -->
69 lines
2.0 KiB
TypeScript
69 lines
2.0 KiB
TypeScript
import type { ContentListingGroup } from '~/lib/content-listings.schema'
|
|
|
|
export const realtimeGetStarted: ContentListingGroup = {
|
|
id: 'realtime-get-started',
|
|
heading: 'Get started',
|
|
type: 'grid',
|
|
columns: 2,
|
|
items: [
|
|
{
|
|
title: 'Getting Started',
|
|
href: '/guides/realtime/getting_started',
|
|
description: 'Set up Realtime in your project and send your first message.',
|
|
},
|
|
],
|
|
}
|
|
|
|
export const realtimeExamples: ContentListingGroup = {
|
|
id: 'realtime-examples',
|
|
heading: 'Examples',
|
|
type: 'grid',
|
|
columns: 2,
|
|
items: [
|
|
{
|
|
title: 'Multiplayer.dev',
|
|
href: 'https://multiplayer.dev',
|
|
description:
|
|
'Showcase application displaying cursor movements and chat messages using Broadcast.',
|
|
},
|
|
{
|
|
title: 'Chat',
|
|
href: 'https://supabase.com/library/docs/nextjs/realtime-chat',
|
|
description:
|
|
'Supabase Library chat component using Broadcast to send messages between users.',
|
|
},
|
|
{
|
|
title: 'Avatar Stack',
|
|
href: 'https://supabase.com/library/docs/nextjs/realtime-avatar-stack',
|
|
description:
|
|
'Supabase Library avatar stack component using Presence to track connected users.',
|
|
},
|
|
{
|
|
title: 'Realtime Cursor',
|
|
href: 'https://supabase.com/library/docs/nextjs/realtime-cursor',
|
|
description:
|
|
"Supabase Library realtime cursor component using Broadcast to share users' cursors to build collaborative applications.",
|
|
},
|
|
],
|
|
}
|
|
|
|
export const realtimeResources: ContentListingGroup = {
|
|
id: 'realtime-resources',
|
|
heading: 'Resources',
|
|
description: 'Find the source code and documentation in the Supabase GitHub repository:',
|
|
type: 'grid',
|
|
columns: 2,
|
|
items: [
|
|
{
|
|
title: 'Supabase Realtime',
|
|
href: 'https://github.com/supabase/realtime',
|
|
description: 'View the source code.',
|
|
},
|
|
{
|
|
title: 'Realtime: Multiplayer Edition',
|
|
href: 'https://supabase.com/blog/supabase-realtime-multiplayer-general-availability',
|
|
description: 'Read more about Supabase Realtime.',
|
|
},
|
|
],
|
|
}
|