Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Apply suggestions from code review

Ruggero Tomasellid9e7875875fc
diff --git a/studio/localStores/storageExplorer/StorageExplorerStore.js b/studio/localStores/storageExplorer/StorageExplorerStore.js
index bc16b36db5f..878b9549520 100644
--- a/studio/localStores/storageExplorer/StorageExplorerStore.js
+++ b/studio/localStores/storageExplorer/StorageExplorerStore.js
@@ -96,7 +96,7 @@ class StorageExplorerStore {
}
}
- initStore(projectRef, url, serviceKey, protocol = "http") {
+ initStore(projectRef, url, serviceKey, protocol = PROJECT_ENDPOINT_PROTOCOL) {
this.projectRef = projectRef
this.initializeSupabaseClient(serviceKey, url, protocol)
}
diff --git a/studio/pages/api/props/project/[ref]/settings.ts b/studio/pages/api/props/project/[ref]/settings.ts
index 7e076ddecbc..986cc58f87c 100644
--- a/studio/pages/api/props/project/[ref]/settings.ts
+++ b/studio/pages/api/props/project/[ref]/settings.ts
@@ -59,6 +59,7 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {
db_schema: 'public',
endpoint: PROJECT_ENDPOINT,
realtime_enabled: true,
+ // TODO: update platform api to return this field
protocol: PROJECT_ENDPOINT_PROTOCOL
},
},