From ca35cbcb3e03e68c0bc405eabc4dd525af5f2c2a Mon Sep 17 00:00:00 2001 From: Beng Eu Date: Wed, 10 Nov 2021 13:10:00 +0800 Subject: [PATCH] fix: clarify that the bucket needs to be set to public for getPublicUrl() (#3821) (#3848) --- web/spec/dart.yml | 1 + web/spec/supabase.yml | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/web/spec/dart.yml b/web/spec/dart.yml index 7e57a8fe768..c1b6cc80606 100644 --- a/web/spec/dart.yml +++ b/web/spec/dart.yml @@ -1002,6 +1002,7 @@ pages: Retrieve URLs for assets in public buckets title: 'from.getPublicUrl()' notes: | + - The bucket needs to be set to public, either via [updateBucket()](/docs/reference/javascript/storage-updatebucket) or by going to Storage on [app.supabase.io](https://app.supabase.io), clicking the overflow menu on a bucket and choosing "Make public" - Policy permissions required: - `buckets` permissions: none - `objects` permissions: none diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml index 80e75a886ef..be5c4a7b479 100644 --- a/web/spec/supabase.yml +++ b/web/spec/supabase.yml @@ -118,14 +118,14 @@ pages: Other languages are built by the community and supported by Supabase. ## JavaScript - + Via NPM ```bash npm install @supabase/supabase-js ``` - + Find the source code on [GitHub](https://github.com/supabase/supabase-js). - + Or via CDN ```js @@ -488,7 +488,7 @@ pages: $ref: '@supabase/gotrue-js."GoTrueClient".GoTrueClient.update' notes: | User email: email updates will send an email to both the user's current and new email with a confirmation link. - + User metadata: It's generally better to store user data in a table inside your public schema (i.e. `public.users`). Use the `update()` method if you have data which rarely changes or is specific only to the logged in user. examples: @@ -1347,6 +1347,7 @@ pages: title: 'from.getPublicUrl()' $ref: '@supabase/storage-js."lib/StorageFileApi".StorageFileApi.getPublicUrl' notes: | + - The bucket needs to be set to public, either via [updateBucket()](/docs/reference/javascript/storage-updatebucket) or by going to Storage on [app.supabase.io](https://app.supabase.io), clicking the overflow menu on a bucket and choosing "Make public" - Policy permissions required: - `buckets` permissions: none - `objects` permissions: none