- Authentication using Supabase Auth
- File Uploads using Supabase Storage
- Dark Mode
- Shadcn/ui
- Create a new storage bucket and set the
STORAGE_BUCKET
environment variable to the bucket name. - Create the following storage policies for the bucket:
- Name:
Access own files
- Allowed operation:
SELECT
- Target roles: (default)
- Policy definition:
bucket_id = 'Files' and owner_id = auth.uid()::text and (storage.foldername(name))[1] = auth.uid()::text
- Name:
Allow upload
- Allowed operation:
INSERT
- Target roles: (default)
- Policy definition:
bucket_id = 'Files' and (storage.foldername(name))[1] = auth.uid()::text
- Name:
Delete own files
- Allowed operation:
SELECT
,DELETE
- Target roles: (default)
- Policy definition:
bucket_id = 'Files' and owner_id = auth.uid()::text and (storage.foldername(name))[1] = auth.uid()::text