As your Supabase project grows, you'll inevitably need to tweak its settings to optimize performance, manage access, and integrate with other services. This section will guide you through the essential project settings available within your Supabase dashboard.
The 'Project Settings' area is your central hub for managing your Supabase instance. It's divided into several key categories, each offering granular control over different aspects of your project.
This is where you'll find basic information about your project. You can rename your project, update its description, and crucially, manage your project's API keys.
Your API keys are vital for connecting your frontend applications and other services to your Supabase backend. Treat these with care and avoid exposing them in client-side code.
You'll see several keys here:
- Public API Key: Safe to use in client-side applications.
- Secret Key: For server-side use only. Never expose this key in your frontend code.
- JWT Secret: Used for signing JSON Web Tokens (JWTs).
- Service Role Keys: For server-side operations that require elevated privileges, bypassing Row Level Security (RLS).
const supabaseUrl = 'YOUR_SUPABASE_URL';
const supabaseKey = 'YOUR_PUBLIC_SUPABASE_ANON_KEY';
const supabase = createClient(supabaseUrl, supabaseKey);This section provides control over your PostgreSQL database. You can manage extensions, monitor database performance, and configure backup settings.
Supabase leverages PostgreSQL extensions to add powerful functionalities like PostGIS for geospatial data, pg_graphql for GraphQL, and uuid-ossp for UUID generation. You can enable or disable these directly from the dashboard.
Regular backups are essential for data safety. Supabase offers automated backups, and you can view your backup history and initiate manual backups here.
This is where you configure how users sign up and log in to your application. You can enable various authentication providers like email/password, social logins (Google, GitHub, etc.), and customize email templates.
Enable and configure OAuth providers to allow users to sign in with their existing accounts from services like Google, GitHub, and more.
Customize the emails sent for actions like password resets, email confirmation, and magic links. This is crucial for maintaining your brand identity.
If your application involves file uploads, this section is for you. You can configure storage bucket settings, including access control and image transformations.
Create and manage storage buckets to organize your files. You can set public or private access levels for each bucket.
For deploying serverless functions directly within Supabase, you'll manage them here. This includes deploying new functions, managing their environments, and viewing logs.
graph TD
A[Access Supabase Project Dashboard] --> B{Navigate to Project Settings}
B --> C[General Settings: API Keys, Project Info]
B --> D[Database Settings: Extensions, Backups]
B --> E[Authentication Settings: Providers, Email Templates]
B --> F[Storage Settings: Buckets]
B --> G[Edge Functions Settings: Deploy, Manage]
Understanding and utilizing these settings effectively is key to building robust and scalable applications with Supabase. Regularly review your settings as your project evolves.