Skip to content

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

Revert normalizing URL when init supabase client for storage dashboard

Joshen Lim925e20fdb670
diff --git a/studio/localStores/storageExplorer/StorageExplorerStore.js b/studio/localStores/storageExplorer/StorageExplorerStore.js
index e425c273e1b..bf2287b0785 100644
--- a/studio/localStores/storageExplorer/StorageExplorerStore.js
+++ b/studio/localStores/storageExplorer/StorageExplorerStore.js
@@ -96,27 +96,16 @@ class StorageExplorerStore {
/* Methods which are commonly used + For better readability */
- normalizeSupabaseURL(url) {
- return url.replace(
- process.env.NEXT_PUBLIC_CUSTOMER_DOMAIN,
- process.env.NEXT_PUBLIC_ALT_CUSTOMER_DOMAIN
- )
- }
-
initializeSupabaseClient = (serviceKey, serviceEndpoint) => {
- this.supabaseClient = createClient(
- this.normalizeSupabaseURL(`https://${serviceEndpoint}`),
- serviceKey,
- {
- localStorage: {
- getItem: (key) => {
- return undefined
- },
- setItem: (key, value) => {},
- removeItem: (key) => {},
+ this.supabaseClient = createClient(`https://${serviceEndpoint}`, serviceKey, {
+ localStorage: {
+ getItem: (key) => {
+ return undefined
},
- }
- )
+ setItem: (key, value) => {},
+ removeItem: (key) => {},
+ },
+ })
}
updateFileInPreviewCache = (fileCache) => {