Skip to content

Commit 67d0911

Browse files
authored
Stop syncing static bucket objects (#37)
1 parent d783eba commit 67d0911

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Use local Studio, `psql`, or the hosted Supabase dashboard for browsing rows and
150150
- `npm run supabase:reset` rebuilds the local database schema and data
151151
- `npm run seed:local-media` uploads local demo media into local Supabase buckets
152152

153-
The demo media under `supabase/storage/avatars`, `supabase/storage/listing_avatars`, and `supabase/storage/listing_photos` is for local development only. Hosted Supabase branches and production should not sync those objects from Git.
153+
The demo media under `supabase/storage/` is for local development only. Hosted Supabase branches and production should not sync bucket objects from Git.
154154

155155
Keep all local and preview data sanitized. Do not export or commit production data.
156156

docs/supabase-local-first.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,10 @@ The seed also creates:
120120
- 1 chat thread
121121
- 2 chat messages
122122
- seeded profile avatars and listing photos in local Supabase Storage
123-
- a sample static bucket object at `static/promo-kit.zip`
124123

125124
The demo data is synthetic and safe to keep in Git.
126125

127-
When `NEXT_PUBLIC_SUPABASE_URL` points at `http://127.0.0.1:54331`, avatar and listing-photo uploads also go to the local Supabase buckets rather than production. The repo-tracked demo media is uploaded only by `npm run seed:local-media`, not by hosted Supabase deploys.
126+
When `NEXT_PUBLIC_SUPABASE_URL` points at `http://127.0.0.1:54331`, avatar and listing-photo uploads also go to the local Supabase buckets rather than production. Repo-tracked bucket media is uploaded only by `npm run seed:local-media`, not by hosted Supabase deploys.
128127

129128
## Fresh Computer Setup
130129

supabase/config.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ allowed_mime_types = ["image/png", "image/jpeg", "image/webp"]
105105
[storage.buckets.static]
106106
public = true
107107
file_size_limit = "50MiB"
108-
objects_path = "./storage/static"
109108

110109
[auth]
111110
enabled = true

0 commit comments

Comments
 (0)