mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
docs: update syntax of analytics bucket creation (#40614)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user