docs: update syntax of analytics bucket creation (#40614)

This commit is contained in:
Katerina Skroumpelou authored and GitHub committed 2025-11-19 13:23:41 +01:00
1 parent 2e360093d1
commit 02e7971fec
1 file changed
+2 -4
@@ -19,11 +19,9 @@ You can create an Analytics Bucket using either the Supabase SDK or the Supabase
```ts
import { createClient } from '@supabase/supabase-js'
const supabase = createClient('https://your-project.supabase.co', 'your-service-key')
const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-or-anon-key')
supabase.storage.createBucket('my-analytics-bucket', {
type: 'ANALYTICS',
})
const { data, error } = await supabase.storage.analytics.createBucket('analytics-data')
```
### Using the Supabase Dashboard