Files
supabase/apps/docs/data/content-listings/resources.data.ts
Alaister YoungandAlaister Young b04118b0e6 [FE-4885] feat(www,docs): add InstantDB migration page to sitemap, docs (#53074)
Makes the InstantDB migration page discoverable. It's served through a
rewrite, so it has no page file for the sitemap to find, and it serves
as its own docs, so there's no separate guide to link to.

**Added:**
- `https://supabase.com/migrate/instantdb` in the www sitemap, alongside
the other proxied apps
- InstantDB card in the "Migrate to Supabase" listing on
`/docs/guides/resources`

The card has no icon because the repo has no InstantDB logo. Adding one
later would also put it in the docs home migration grid.

## Tested locally

Sitemap and docs listing tests pass, and ESLint and Prettier are clean
on the touched files. The generator outputs the URL once, as valid XML.
`tsc` in `apps/docs` only failed on the missing `__generated__/graphql`
module since codegen wasn't run.

## To test

- `/docs/guides/resources` on the docs preview: card shows in "Migrate
to Supabase" and links to the migration page
- `/sitemap_www.xml` on the www preview includes `/migrate/instantdb`

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-06 15:48:21 +09:00

151 lines
4.9 KiB
TypeScript

import type { ContentListingGroup } from '~/lib/content-listings.schema'
export const resourcesOverview: ContentListingGroup = {
id: 'resources-overview',
type: 'grid',
items: [
{
title: 'Examples',
href: '/guides/getting-started',
description: 'Official GitHub examples, curated content from the community, and more.',
},
{
title: 'Glossary',
href: '/guides/resources/glossary',
description: 'Definitions for terminology and acronyms used in the Supabase documentation.',
},
],
}
export const resourcesMigrate: ContentListingGroup = {
id: 'resources-migrate',
heading: 'Migrate to Supabase',
headingLevel: 'h3',
type: 'grid',
items: [
{
title: 'Auth0',
href: 'https://supabase.com/kb/guides/migrate-from-auth0',
icon: '/docs/img/icons/auth0-icon',
hasLightIcon: true,
description: 'Move your auth users from Auth0 to a Supabase project.',
},
{
title: 'Firebase Auth',
href: 'https://supabase.com/kb/guides/migrate-from-firebase-auth',
icon: '/docs/img/icons/firebase-icon',
hasLightIcon: false,
description: 'Move your auth users from a Firebase project to a Supabase project.',
},
{
title: 'Firestore Data',
href: 'https://supabase.com/kb/guides/migrate-from-firestore-data',
icon: '/docs/img/icons/firebase-icon',
hasLightIcon: false,
description: 'Migrate the contents of a Firestore collection to a single Postgres table.',
},
{
title: 'Firebase Storage',
href: 'https://supabase.com/kb/guides/migrate-from-firebase-storage',
icon: '/docs/img/icons/firebase-icon',
hasLightIcon: false,
description: 'Convert your Firebase Storage files to Supabase Storage.',
},
{
title: 'Heroku',
href: 'https://supabase.com/kb/guides/migrate-from-heroku',
icon: '/docs/img/icons/heroku-icon',
hasLightIcon: false,
description: 'Migrate your Heroku Postgres database to Supabase.',
},
{
title: 'Render',
href: 'https://supabase.com/kb/guides/migrate-from-render',
icon: '/docs/img/icons/render-icon',
hasLightIcon: false,
description: 'Migrate your Render Postgres database to Supabase.',
},
{
title: 'Amazon RDS',
href: 'https://supabase.com/kb/guides/migrate-from-amazon-rds',
icon: '/docs/img/icons/aws-rds-icon',
hasLightIcon: false,
description: 'Migrate your Amazon RDS database to Supabase.',
},
{
title: 'Postgres',
href: 'https://supabase.com/kb/guides/migrate-from-postgres',
icon: '/docs/img/icons/postgres-icon',
hasLightIcon: false,
description: 'Migrate your Postgres database to Supabase.',
},
{
title: 'MySQL',
href: 'https://supabase.com/kb/guides/migrate-from-mysql',
icon: '/docs/img/icons/mysql-icon',
hasLightIcon: false,
description: 'Migrate your MySQL database to Supabase.',
},
{
title: 'Microsoft SQL Server',
href: 'https://supabase.com/kb/guides/migrate-from-mssql',
icon: '/docs/img/icons/mssql-icon',
hasLightIcon: false,
description: 'Migrate your Microsoft SQL Server database to Supabase.',
},
{
title: 'Neon',
href: 'https://supabase.com/kb/guides/migrate-from-neon',
icon: '/docs/img/icons/neon-icon',
hasLightIcon: true,
description: 'Migrate your Neon database to Supabase.',
},
{
title: 'Vercel Postgres',
href: 'https://supabase.com/kb/guides/migrate-from-vercel-postgres',
icon: '/docs/img/icons/vercel-icon',
hasLightIcon: true,
description: 'Migrate your Vercel Postgres database to Supabase.',
},
{
title: 'InstantDB',
href: 'https://supabase.com/migrate/instantdb',
description: 'Migrate your InstantDB app to Supabase.',
},
],
}
export const resourcesPostgres: ContentListingGroup = {
id: 'resources-postgres',
heading: 'Postgres resources',
headingLevel: 'h3',
type: 'grid',
items: [
{
title: 'Managing Indexes',
href: '/guides/database/postgres/indexes',
description: 'Improve query performance using various index types in Postgres.',
},
{
title: 'Cascade Deletes',
href: '/guides/database/postgres/cascade-deletes',
description: 'Understand the types of foreign key constraint deletes.',
},
{
title: 'Drop all tables in schema',
href: '/guides/database/postgres/dropping-all-tables-in-schema',
description: 'Delete all tables in a given schema.',
},
{
title: 'Select first row per group',
href: '/guides/database/postgres/first-row-in-group',
description: 'Retrieve the first row in each distinct group.',
},
{
title: 'Print Postgres version',
href: '/guides/database/postgres/which-version-of-postgres',
description: 'Find out which version of Postgres you are running.',
},
],
}