The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Remove IS_PLATFORM check in buckets query
Joshen Lim12b6c1d2b1ee
diff --git a/studio/data/storage/buckets-query.ts b/studio/data/storage/buckets-query.tsindex 530c257a52b..793254c8340 100644--- a/studio/data/storage/buckets-query.ts+++ b/studio/data/storage/buckets-query.ts@@ -1,6 +1,6 @@import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query'import { get } from 'lib/common/fetch'-import { API_URL, IS_PLATFORM } from 'lib/constants'+import { API_URL } from 'lib/constants'import { useCallback } from 'react'import { storageKeys } from './keys'@@ -35,7 +35,7 @@ export const useBucketsQuery = <TData = BucketsData>(useQuery<BucketsData, BucketsError, TData>(storageKeys.buckets(projectRef),({ signal }) => getBuckets({ projectRef }, signal),- { enabled: IS_PLATFORM && enabled && typeof projectRef !== 'undefined', ...options }+ { enabled: enabled && typeof projectRef !== 'undefined', ...options })export const useBucketsPrefetch = ({ projectRef }: BucketsVariables) => {