Enabling the Supabase Addon
The Supabase addon can only be enabled for an existing database. It cannot be configured during the initial database creation process. To enable the Supabase addon:- Navigate to the Databases section in your Latitude.sh dashboard.
- Select the database for which you want to enable the Supabase addon.
- Click on the Supabase tab on the database overview page.
- Click the Enable Supabase Addon button.
After Enabling
Once the Supabase addon is successfully enabled, you will be provided with two important API keys:API_ANON_KEY
: This is the anonymous public key. It’s intended for client-side usage, for example, when using the Supabase client library in your frontend application. This key has limited permissions as defined by your Row Level Security (RLS) policies.API_SERVICE_ROLE_KEY
: This is the service role key. It’s intended for server-side usage, such as in your backend services or scripts. This key has full access to your database and can bypass Row Level Security (RLS) policies. Treat this key like a password and keep it secure.
Accessing the Supabase Dashboard
Once the Supabase integration is enabled, there are two ways to access the Supabase dashboard:- Open Dashboard Link: After enabling the addon, the button in the Security & Integrations tab transforms into an “Open dashboard” link.
- Supabase Button: You will find a dedicated Supabase button in the Security & Integrations tab. Clicking this button will also navigate you to the Supabase project dashboard.
Troubleshooting
If you encounter issues with the Supabase addon:- Verify API Key Usage: Ensure you are using the correct Supabase API keys (
API_ANON_KEY
for client-side,API_SERVICE_ROLE_KEY
for server-side) and that they are correctly implemented in your application. - Check Network Connectivity: Confirm that your application can reach the Supabase endpoint associated with your database.
- Review Database Logs: Check your database logs for any error messages that might indicate issues with the Supabase integration or underlying database operations.
- Consult Supabase Documentation: For issues related to Supabase-specific features or client libraries, the official Supabase documentation can be a valuable resource.