Skip to content

Supabase

Select a Template

Overview

By integrating Supabase with Vercel, developers can leverage a Supabase Postgres Database, Auth, and Storage, Edge functions and Realtime while benefiting from Vercel's hassle-free deployment capabilities.

Environment Variables

Essential configuration details such as the database connection URL, authentication credentials, and keys for accessing Supabase services are automatically set.

Database branching (private alpha release)

Installing this integration is also required for Database Branching, in which Supabase will set environment variables for each GitHub branch a Vercel deployment is used with. Due to possible race conditions, Supabase will also redeploy the first deployment to ensure that the correct env vars are in use.

Additional Information

This integration will keep Vercel up to date with the latest Environment Variables.

What Environment Variables are set?

These variables provide essential configuration details such as the database connection URL, authentication credentials, and keys for accessing Supabase services.

By setting these variables appropriately, applications can establish connections to the database and securely interact with Supabase APIs.

Please exercise extreme caution with any environment variables from Supabase, especially:

POSTGRES_PASSWORD, POSTGRES_URL, POSTGRES_PRISMA_URL, POSTGRES_URL_NON_POOLING, SUPABASE_SERVICE_ROLE_KEY.

Full list of variables installed:

POSTGRES_URL
POSTGRES_PRISMA_URL
POSTGRES_URL_NON_POOLING
POSTGRES_USER
POSTGRES_HOST
POSTGRES_PASSWORD
POSTGRES_DATABASE
SUPABASE_SERVICE_ROLE_KEY
SUPABASE_ANON_KEY
SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY
NEXT_PUBLIC_SUPABASE_URL

Only the NEXTPUBLIC* prefixed variables are available on client side with NextJS applications.