landingpage

This commit is contained in:
2026-08-24 13:38:25 +07:00
commit d8e4e8a502
84 changed files with 12729 additions and 0 deletions
@@ -0,0 +1,14 @@
-- Allow anonymous uploads into the public 'gallery' bucket.
-- The bucket is public, so direct object GETs bypass RLS for display.
-- These policies only grant INSERT to anon for this bucket.
ALTER TABLE storage.objects ENABLE ROW LEVEL SECURITY;
DROP POLICY IF EXISTS storage_objects_gallery_insert ON storage.objects;
CREATE POLICY storage_objects_gallery_insert ON storage.objects
FOR INSERT TO anon
WITH CHECK (bucket = 'gallery');
GRANT INSERT ON storage.objects TO anon;
GRANT USAGE ON SCHEMA storage TO anon;