Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix formatting in migration guides

dannykngc4294175a02b
diff --git a/apps/docs/docs/guides/migrations/firebase-auth.mdx b/apps/docs/docs/guides/migrations/firebase-auth.mdx
index d4e4d7e55df..ad34949f235 100644
--- a/apps/docs/docs/guides/migrations/firebase-auth.mdx
+++ b/apps/docs/docs/guides/migrations/firebase-auth.mdx
@@ -16,23 +16,19 @@ Supabase provides several [tools](https://github.com/supabase-community/firebase
## Set up the migration tool {#set-up-migration-tool}
1. Clone the [firebase-to-supabase](https://github.com/supabase-community/firebase-to-supabase) repository:
-
-```
-git clone https://github.com/supabase-community/firebase-to-supabase.git
-```
-
+ ```bash
+ git clone https://github.com/supabase-community/firebase-to-supabase.git
+ ```
1. In the `/auth` directory, create a file named `supabase-service.json` with the following contents:
-
-```json
-{
- "host": "database.server.com",
- "password": "secretpassword",
- "user": "postgres",
- "database": "postgres",
- "port": 5432
-}
-```
-
+ ```json
+ {
+ "host": "database.server.com",
+ "password": "secretpassword",
+ "user": "postgres",
+ "database": "postgres",
+ "port": 5432
+ }
+ ```
1. Go to the [Database settings](https://app.supabase.com/project/_/settings/database) for your project in the Supabase Dashboard.
1. Under **Connection Info**, copy the Host string and replace the entry in your `supabase-service.json` file.
1. Enter the password you used when you created your Supabase project in the `password` entry in the `supabase-service.json` file.
diff --git a/apps/docs/docs/guides/migrations/firebase-storage.mdx b/apps/docs/docs/guides/migrations/firebase-storage.mdx
index c078899f690..754a68dbc3e 100644
--- a/apps/docs/docs/guides/migrations/firebase-storage.mdx
+++ b/apps/docs/docs/guides/migrations/firebase-storage.mdx
@@ -13,11 +13,9 @@ Supabase provides several [tools](https://github.com/supabase-community/firebase
## Set up the migration tool {#set-up-migration-tool}
1. Clone the [firebase-to-supabase](https://github.com/supabase-community/firebase-to-supabase) repository:
-
-```
-git clone https://github.com/supabase-community/firebase-to-supabase.git
-```
-
+ ```bash
+ git clone https://github.com/supabase-community/firebase-to-supabase.git
+ ```
1. In the `/storage` directory, rename [supabase-keys-sample.js](https://github.com/supabase-community/firebase-to-supabase/blob/main/storage/supabase-keys-sample.js) to `supabase-keys.js`.
1. Go to your Supabase project's [API settings](https://app.supabase.com/project/_/settings/api) in the Dashboard.
1. Copy the **Project URL** and update the `SUPABASE_URL` value in `supabase-keys.js`.
diff --git a/apps/docs/docs/guides/migrations/firestore-data.mdx b/apps/docs/docs/guides/migrations/firestore-data.mdx
index 66c01fd1405..bed0a5fda0a 100644
--- a/apps/docs/docs/guides/migrations/firestore-data.mdx
+++ b/apps/docs/docs/guides/migrations/firestore-data.mdx
@@ -12,23 +12,19 @@ The Firestore `collection` is "flattened" and converted to a table with basic co
## Set up the migration tool {#set-up-migration-tool}
1. Clone the [firebase-to-supabase](https://github.com/supabase-community/firebase-to-supabase) repository:
-
-```
-git clone https://github.com/supabase-community/firebase-to-supabase.git
-```
-
+ ```bash
+ git clone https://github.com/supabase-community/firebase-to-supabase.git
+ ```
1. In the `/firestore` directory, create a file named `supabase-service.json` with the following contents:
-
-```json
-{
- "host": "database.server.com",
- "password": "secretpassword",
- "user": "postgres",
- "database": "postgres",
- "port": 5432
-}
-```
-
+ ```json
+ {
+ "host": "database.server.com",
+ "password": "secretpassword",
+ "user": "postgres",
+ "database": "postgres",
+ "port": 5432
+ }
+ ```
1. Go to the [Database settings](https://app.supabase.com/project/_/settings/database) for your project in the Supabase Dashboard.
1. Under **Connection Info**, copy the Host string and replace the entry in your `supabase-service.json` file.
1. Enter the password you used when you created your Supabase project in the `password` entry in the `supabase-service.json` file.
diff --git a/apps/docs/docs/guides/migrations/heroku.mdx b/apps/docs/docs/guides/migrations/heroku.mdx
index 2e0cda43f1a..6d6c99b335c 100644
--- a/apps/docs/docs/guides/migrations/heroku.mdx
+++ b/apps/docs/docs/guides/migrations/heroku.mdx
@@ -41,7 +41,7 @@ Alternatively, use the [Heroku to Supabase migration tool](https://migrate.supab
Use `pg_dump` with your Heroku credentials to export your Heroku database to a file (e.g., `heroku_dump.sql`).
-```
+```bash
pg_dump --clean --if-exists --quote-all-identifiers \
-h $HEROKU_HOST -U $HEROKU_USER -d $HEROKU_DATABASE \
--no-owner --no-privileges > heroku_dump.sql
@@ -51,7 +51,7 @@ pg_dump --clean --if-exists --quote-all-identifiers \
Use `psql` to import the Heroku database file to your Supabase project.
-```
+```bash
psql -h $SUPABASE_HOST -U postgres -f heroku_dump.sql
```