Supabase
Learn how to configure Supabase interface URL and key in the project
Where to Configure Supabase Related Keys
The configuration code for Supabase service is in the EasyAppSwiftUI/Constants/Constants.swift file. Here you mainly need to understand where to configure Supabase URL and key.
How to integrate Supabase step by step will be detailed in the Integrations/Supabase documentation.
enum Constants {
// ... other configurations
enum Supabase {
#if DEBUG
/// Local development supabase url
static let url = "http://127.0.0.1:54321"
#else
/// Production supabase url
static let url = "your supabase url"
#endif
/// The API key of your Supabase project
static let key = "your supabase api key"
}
// ... other configurations
}During development, it's recommended to set up a local Supabase service with a fixed URL of http://127.0.0.1:54321.
If you use a real device for testing, you need to replace the url with your ip address http://your_ip_address:54321.
After the development phase is complete, you need to go through the process in the production environment to ensure that the Supabase service can be used normally in the production environment. The production environment URL is the URL you applied for on the Supabase official website.
How to set up local Supabase service and how to integrate Supabase service will be detailed in the Integrations/Supabase documentation.
Learn More About Supabase Integration
Last updated on