Skip to content

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

update storage docs

Inian4729689ff6f1
diff --git a/spec/supabase_js_v2_legacy.yml b/spec/supabase_js_v2_legacy.yml
index 18bf382b85d..aeeace855fb 100644
--- a/spec/supabase_js_v2_legacy.yml
+++ b/spec/supabase_js_v2_legacy.yml
@@ -782,7 +782,7 @@ pages:
body: JSON.stringify({ foo: 'bar' })
})
```
- - name: Parsing custom headers.
+ - name: Passing custom headers.
description: |
You can pass custom headers to your function. Note: supabase-js automatically passes the `Authorization` header with the signed in user's JWT.
isSpotlight: true
@@ -1498,7 +1498,7 @@ pages:
isSpotlight: true
js: |
```js
- const { signedURL, error } = await supabase
+ const { data, error } = await supabase
.storage
.from('avatars')
.createSignedUrl('folder/avatar1.png', 60)
@@ -1535,7 +1535,7 @@ pages:
isSpotlight: true
js: |
```js
- const { publicURL, error } = supabase
+ const { data, error } = supabase
.storage
.from('public-bucket')
.getPublicUrl('folder/avatar1.png')