Production
Supabase

Supabase

💡

Before setting up Supabase for production, ensure you have completed previous steps and had Supabase Local running with latest migrations.

Setup Supabase Production

Here's a guide on how to create a Supabase project:

Head to Supabase

Visit Supabase website (opens in a new tab) and create an account if you don't have one already.

Create a new project

Click [New Project] button. Choose a unique and memorable name for your Supabase project. This name will be used to identify your project within the Supabase platform.

Supabase new

Select a region (optional)

Supabase offers database deployments in various regions around the world. By default, Supabase might suggest a region based on your location. You can choose a specific region if you have latency or data residency requirements.

Supabase region

Create the project

Once you have entered a project name and chosen a region, click on the [Create new project] button to finalize the process.

Deploy Migrations

💡

Ensure you have completed previous steps and had Supabase Local running with latest migrations.

Link to you project

You should see a new supabase directory. Then you need to link your local repository with your Supabase project:

supabase login
supabase link --project-ref $PROJECT_ID

You can get your $PROJECT_ID from your project's dashboard URL:

https://supabase.com/dashboard/project/<project-id>

Deploy migrations

You can apply migrations through your local CLI to a linked remote database.

supabase db push

Once pushed, check that the migration version is up to date for both local and remote databases.

supabase db list

For other methods and techniques to manage your migrations, visit Supabase website (opens in a new tab).