From 85a6c5f640dec375a29fc63603b7e600049e1223 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Thu, 15 Aug 2024 09:56:26 +0200 Subject: [PATCH] cleans up structure of the docs (#21484) Co-authored-by: Francesco Sansalvadore --- .../NavigationMenu.constants.ts | 32 +++++++++---------- .../migrating-to-supabase/amazon-rds.mdx | 7 ++-- .../migrating-to-supabase/firebase-auth.mdx | 10 +++--- .../firebase-storage.mdx | 4 +-- .../migrating-to-supabase/firestore-data.mdx | 4 +-- .../migrating-to-supabase/heroku.mdx | 4 +-- .../resources/migrating-to-supabase/mssql.mdx | 5 +-- .../resources/migrating-to-supabase/mysql.mdx | 3 +- .../migrating-to-supabase/postgres.mdx | 3 +- .../migrating-to-supabase/render.mdx | 1 + 10 files changed, 38 insertions(+), 35 deletions(-) diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts index 100afb30208..3b14fbc2d22 100644 --- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts +++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts @@ -1924,6 +1924,11 @@ export const resources: NavMenuConstant = { name: 'Migrate to Supabase', url: '/guides/resources/migrating-to-supabase', items: [ + { + name: 'Amazon RDS', + url: '/guides/resources/migrating-to-supabase/amazon-rds', + items: [], + }, { name: 'Auth0', url: '/guides/resources/migrating-to-supabase/auth0', @@ -1933,7 +1938,7 @@ export const resources: NavMenuConstant = { url: '/guides/resources/migrating-to-supabase/firebase-auth', }, { - name: 'Firestore Data', + name: 'Firebase Firestore', url: '/guides/resources/migrating-to-supabase/firestore-data', }, { @@ -1941,23 +1946,9 @@ export const resources: NavMenuConstant = { url: '/guides/resources/migrating-to-supabase/firebase-storage', }, { - name: 'Heroku', + name: 'Heroku Postgres', url: '/guides/resources/migrating-to-supabase/heroku', }, - { - name: 'Render', - url: '/guides/resources/migrating-to-supabase/render', - }, - { - name: 'Amazon RDS', - url: '/guides/resources/migrating-to-supabase/amazon-rds', - items: [], - }, - { - name: 'Postgres', - url: '/guides/resources/migrating-to-supabase/postgres', - items: [], - }, { name: 'MySQL', url: '/guides/resources/migrating-to-supabase/mysql', @@ -1968,6 +1959,15 @@ export const resources: NavMenuConstant = { url: '/guides/resources/migrating-to-supabase/mssql', items: [], }, + { + name: 'Postgres', + url: '/guides/resources/migrating-to-supabase/postgres', + items: [], + }, + { + name: 'Render', + url: '/guides/resources/migrating-to-supabase/render', + }, ], }, ], diff --git a/apps/docs/content/guides/resources/migrating-to-supabase/amazon-rds.mdx b/apps/docs/content/guides/resources/migrating-to-supabase/amazon-rds.mdx index 519e106616b..269c524be71 100644 --- a/apps/docs/content/guides/resources/migrating-to-supabase/amazon-rds.mdx +++ b/apps/docs/content/guides/resources/migrating-to-supabase/amazon-rds.mdx @@ -1,6 +1,7 @@ --- title: 'Migrate from Amazon RDS to Supabase' -description: 'Migrate your Amazon RDS MySQL or MS SQL database to Supabase Postgres database.' +description: 'Migrate your Amazon RDS MySQL or MS SQL database to Supabase.' +subtitle: 'Migrate your Amazon RDS MySQL or MS SQL database to Supabase.' --- This guide aims to exhibit the process of transferring your Amazon RDS database from any of these engines Postgres, MySQL or MS SQL to Supabase's Postgres database. Although Amazon RDS is a favored managed database service provided by AWS, it may not suffice for all use cases. Supabase, on the other hand, provides an excellent free and open source option that encompasses all the necessary backend features to develop a product: a Postgres database, authentication, instant APIs, edge functions, real-time subscriptions, and storage. @@ -21,9 +22,7 @@ Supabase's core is Postgres, enabling the use of row-level security and providin ## Retrieve your Supabase host [#retrieve-supabase-host] -1. If you're new to Supabase, [create a project](https://supabase.com/dashboard). - Make a note of your password, you will need this later. If you forget it, you can [reset it here](https://supabase.com/dashboard/project/_/settings/database). - +1. If you're new to Supabase, [create a project](https://database.new). Make a note of your password, you will need this later. If you forget it, you can [reset it here](https://supabase.com/dashboard/project/_/settings/database). 1. Go to the [Database settings](https://supabase.com/dashboard/project/_/settings/database) for your project in the Supabase Dashboard. 1. Under **Connection Info**, note your Host (`$SUPABASE_HOST`). diff --git a/apps/docs/content/guides/resources/migrating-to-supabase/firebase-auth.mdx b/apps/docs/content/guides/resources/migrating-to-supabase/firebase-auth.mdx index 72302b38401..bf2687b7a10 100644 --- a/apps/docs/content/guides/resources/migrating-to-supabase/firebase-auth.mdx +++ b/apps/docs/content/guides/resources/migrating-to-supabase/firebase-auth.mdx @@ -1,14 +1,14 @@ --- id: 'firebase-auth' -title: 'Firebase Auth Migration' -description: 'Migrate Firebase auth users to a Supabase project.' -sidebar_label: 'Firebase Auth' +title: 'Migrate from Firebase Auth to Supabase' +description: 'Migrate Firebase auth users to Supabase Auth.' +subtitle: 'Migrate Firebase auth users to Supabase Auth.' --- Supabase provides several [tools](https://github.com/supabase-community/firebase-to-supabase/tree/main/auth) to help migrate auth users from a Firebase project to a Supabase project. There are two parts to the migration process: - `firestoreusers2json` ([TypeScript](https://github.com/supabase-community/firebase-to-supabase/blob/main/auth/firestoreusers2json.ts), [JavaScript](https://github.com/supabase-community/firebase-to-supabase/blob/main/auth/firestoreusers2json.js)) exports users from an existing Firebase project to a `.json` file on your local system. -- `import_users` ([TypeScript](https://github.com/supabase-community/firebase-to-supabase/blob/main/auth/import_users.ts), [JavaScript](https://github.com/supabase-community/firebase-to-supabase/blob/main/auth/import_users.js)) imports users from a saved `.json` file into your Supabase project (inserting those users into the `auth.users` table of your `PostgreSQL` database instance). +- `import_users` ([TypeScript](https://github.com/supabase-community/firebase-to-supabase/blob/main/auth/import_users.ts), [JavaScript](https://github.com/supabase-community/firebase-to-supabase/blob/main/auth/import_users.js)) imports users from a saved `.json` file into your Supabase project (inserting those users into the `auth.users` table of your `Postgres` database instance). ## Set up the migration tool [#set-up-migration-tool] @@ -69,7 +69,7 @@ hash_config { - `filename.json`: (optional) output filename (defaults to `./users.json`) - `batchSize`: (optional) number of users to fetch in each batch (defaults to 100) -### Import JSON users file to Supabase Auth (PostgreSQL: auth.users) [#import-json-users-file] +### Import JSON users file to Supabase Auth (Postgres: auth.users) [#import-json-users-file] `node import_users.js []` diff --git a/apps/docs/content/guides/resources/migrating-to-supabase/firebase-storage.mdx b/apps/docs/content/guides/resources/migrating-to-supabase/firebase-storage.mdx index d83f6a62acc..abbbd1038e4 100644 --- a/apps/docs/content/guides/resources/migrating-to-supabase/firebase-storage.mdx +++ b/apps/docs/content/guides/resources/migrating-to-supabase/firebase-storage.mdx @@ -1,8 +1,8 @@ --- id: 'firebase-storage' -title: 'Firebase Storage Migration' +title: 'Migrated from Firebase Storage to Supabase' description: 'Migrate Firebase Storage files to Supabase Storage.' -sidebar_label: 'Firebase Storage' +subtitle: 'Migrate Firebase Storage files to Supabase Storage.' --- Supabase provides several [tools](https://github.com/supabase-community/firebase-to-supabase/tree/main/storage) to convert storage files from Firebase Storage to Supabase Storage. Conversion is a two-step process: diff --git a/apps/docs/content/guides/resources/migrating-to-supabase/firestore-data.mdx b/apps/docs/content/guides/resources/migrating-to-supabase/firestore-data.mdx index ba2dda8d397..60f071362c9 100644 --- a/apps/docs/content/guides/resources/migrating-to-supabase/firestore-data.mdx +++ b/apps/docs/content/guides/resources/migrating-to-supabase/firestore-data.mdx @@ -1,8 +1,8 @@ --- id: 'firestore-data' -title: 'Firestore Data Migration' +title: 'Migrated from Firebase Firestore to Supabase' description: 'Migrate your Firebase Firestore database to a Supabase Postgres database.' -sidebar_label: 'Firestore Data' +subtitle: 'Migrate your Firebase Firestore database to a Supabase Postgres database.' --- Supabase provides several [tools](https://github.com/supabase-community/firebase-to-supabase/tree/main/firestore) to convert data from a Firebase Firestore database to a Supabase PostgreSQL database. The process copies the entire contents of a single Firestore `collection` to a single PostgreSQL `table`. diff --git a/apps/docs/content/guides/resources/migrating-to-supabase/heroku.mdx b/apps/docs/content/guides/resources/migrating-to-supabase/heroku.mdx index 17996649ab4..2256602e571 100644 --- a/apps/docs/content/guides/resources/migrating-to-supabase/heroku.mdx +++ b/apps/docs/content/guides/resources/migrating-to-supabase/heroku.mdx @@ -2,8 +2,8 @@ id: 'heroku' title: 'Migrate from Heroku to Supabase' description: 'Migrate your Heroku Postgres database to Supabase.' -sidebar_label: 'Heroku' -video: 'https://www.youtube.com/v/xsRhPMphtZ4' +subtitle: 'Migrate your Heroku Postgres database to Supabase.' +tocVideo: 'xsRhPMphtZ4' --- Supabase is one of the best [free alternatives to Heroku Postgres](https://supabase.com/alternatives/supabase-vs-heroku-postgres). This guide shows how to migrate your Heroku Postgres database to Supabase. This migration requires the [pg_dump](https://www.postgresql.org/docs/current/app-pgdump.html) and [psql](https://www.postgresql.org/docs/current/app-psql.html) CLI tools, which are installed automatically as part of the complete PostgreSQL installation package. diff --git a/apps/docs/content/guides/resources/migrating-to-supabase/mssql.mdx b/apps/docs/content/guides/resources/migrating-to-supabase/mssql.mdx index 75a6a0d5b15..17b3aba57da 100644 --- a/apps/docs/content/guides/resources/migrating-to-supabase/mssql.mdx +++ b/apps/docs/content/guides/resources/migrating-to-supabase/mssql.mdx @@ -1,6 +1,7 @@ --- -title: 'Migrate Your MSSQL Database to Supabase' -description: 'Migrate your Microsoft SQL Server database to Supabase Postgres database.' +title: 'Migrate from MSSQL to Supabase' +description: 'Migrate your Microsoft SQL Server database to Supabase.' +subtitle: 'Migrate your Microsoft SQL Server database to Supabase.' --- This guide aims to demonstrate the process of transferring your Microsoft SQL Server database to Supabase's PostgreSQL database. Supabase is a powerful and open-source platform offering a wide range of backend features, including a PostgreSQL database, authentication, instant APIs, edge functions, real-time subscriptions, and storage. Migrating your MSSQL database to Supabase's Postgres enables you to leverage Postgres's capabilities and access all the features you need for your project. diff --git a/apps/docs/content/guides/resources/migrating-to-supabase/mysql.mdx b/apps/docs/content/guides/resources/migrating-to-supabase/mysql.mdx index 8f558dfa6ce..981360e1293 100644 --- a/apps/docs/content/guides/resources/migrating-to-supabase/mysql.mdx +++ b/apps/docs/content/guides/resources/migrating-to-supabase/mysql.mdx @@ -1,6 +1,7 @@ --- -title: 'Migrate Your MySQL Database to Supabase' +title: 'Migrate from MySQL to Supabase' description: 'Migrate your MySQL database to Supabase Postgres database.' +subtitle: 'Migrate your MySQL database to Supabase Postgres database.' --- This guide aims to exhibit the process of transferring your MySQL database to Supabase's Postgres database. Supabase is a robust and open-source platform offering a wide range of backend features, including a PostgreSQL database, authentication, instant APIs, edge functions, real-time subscriptions, and storage. Migrating your MySQL database to Supabase's PostgreSQL enables you to leverage PostgreSQL's capabilities and access all the features you need for your project. diff --git a/apps/docs/content/guides/resources/migrating-to-supabase/postgres.mdx b/apps/docs/content/guides/resources/migrating-to-supabase/postgres.mdx index b8dc0f54370..3d7257e5972 100644 --- a/apps/docs/content/guides/resources/migrating-to-supabase/postgres.mdx +++ b/apps/docs/content/guides/resources/migrating-to-supabase/postgres.mdx @@ -1,6 +1,7 @@ --- title: 'Migrate from Postgres to Supabase' -description: 'Migrate your Postgres database to Supabase.' +description: 'Migrate your existing Postgres database to Supabase.' +subtitle: 'Migrate your existing Postgres database to Supabase.' --- This is a guide for migrating your Postgres database to [Supabase](https://supabase.com). diff --git a/apps/docs/content/guides/resources/migrating-to-supabase/render.mdx b/apps/docs/content/guides/resources/migrating-to-supabase/render.mdx index 5078aeeee3a..3aaffad8751 100644 --- a/apps/docs/content/guides/resources/migrating-to-supabase/render.mdx +++ b/apps/docs/content/guides/resources/migrating-to-supabase/render.mdx @@ -1,6 +1,7 @@ --- title: 'Migrate from Render to Supabase' description: 'Migrate your Render Postgres database to Supabase.' +subtitle: 'Migrate your Render Postgres database to Supabase.' --- Render is a popular Web Hosting service in the online services category that also has a managed Postgres service. Render has a great developer experience, allowing users to deploy straight from GitHub or GitLab. This is the core of their product and they do it really well. However, when it comes to Postgres databases, it may not be the best option.