Skip to content

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

Fixes the Storage policy

Paul Copplestone7ed17fd07cec
diff --git a/web/docs/guides/storage.mdx b/web/docs/guides/storage.mdx
index 35748f6b539..5bab5530546 100644
--- a/web/docs/guides/storage.mdx
+++ b/web/docs/guides/storage.mdx
@@ -199,10 +199,11 @@ values={[
<TabItem value="SQL">
```sql
--- Use the SQL to create a bucket.
+-- Use the SQL to create a policy.
-insert into storage.buckets (id, name)
-values ('avatars', 'avatars');
+create policy "Public Access"
+ on storage.objects for select
+ using ( bucket_id = 'public' );
```
</TabItem>