From 6a670269d6f231ed456ff74d74ca47cced152f0f Mon Sep 17 00:00:00 2001 From: MingHo Chang Date: Fri, 28 Aug 2026 18:07:50 +0200 Subject: [PATCH] Revise setup instructions for Supabase integration Updated the setup instructions for running Umami on Supabase, including changes to the database URL format and removing one step. --- content/docs/guides/running-on-supabase.mdx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/content/docs/guides/running-on-supabase.mdx b/content/docs/guides/running-on-supabase.mdx index 00e2b32..7909822 100644 --- a/content/docs/guides/running-on-supabase.mdx +++ b/content/docs/guides/running-on-supabase.mdx @@ -6,15 +6,14 @@ title: Running on Supabase ## Setup -1. Edit db/postgresql/schema.prisma to add directUrl = env("DIRECT_DATABASE_URL") -2. Create a project on Supabase with a given name in a region close to where you will be hosting your Umami project. -3. Get the database connection string from the **Settings > Database** page, then scroll to the bottom for the **Connection Pooling** section and copy the **Connection string**. -4. Add `DATABASE_URL` and `DIRECT_DATABASE_URL` to your `.env` file: +1. Create a project on Supabase with a given name in a region close to where you will be hosting your Umami project. +2. Get the database connection string from the **Settings > Database** page, then scroll to the bottom for the **Connection Pooling** section and copy the **Connection string**. +3. Add `DATABASE_URL` and `DIRECT_DATABASE_URL` (Session Pooler URI instead of Direct Connection) to your `.env` file: ```dotenv - DATABASE_URL=postgres://[db-user].[project-ref]:[db-password]@aws-0-[aws-region].pooler.supabase.com:6543/[db-name]?pgbouncer=true&connection_limit=1 - DIRECT_DATABASE_URL=postgres://postgres.[my-supabase-project-id]:[db-password]@aws-0-[aws-region].pooler.supabase.com:5432/postgres + DATABASE_URL=postgresql://[db-user].[project-ref]:[db-password]@aws-0-[aws-region].pooler.supabase.com:6543/[db-name]?pgbouncer=true&connection_limit=1 + DIRECT_DATABASE_URL=postgresql://postgres.[my-supabase-project-id]:[db-password]@aws-0-[aws-region].pooler.supabase.com:5432/postgres ``` -5. You should now be able to build and start Umami (`npm run build` followed by `npm start`). -6. Follow the **Getting started** guide starting from the [Login](/docs/login) step and be sure to change the default password. +4. You should now be able to build and start Umami (`npm run build` followed by `npm start`). +5. Follow the **Getting started** guide starting from the [Login](/docs/login) step and be sure to change the default password.