TuPerfil.net uses a single Supabase Storage bucket namedDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/santiagodc8/tu_perfil.net/llms.txt
Use this file to discover all available pages before exploring further.
article-images to store all media: article featured images and gallery images uploaded through the TipTap editor.
Bucket overview
| Setting | Value |
|---|---|
| Bucket name | article-images |
| Visibility | Public (anyone can read objects) |
| Created by | Migration 001_initial_schema.sql |
| Access control | Row Level Security on storage.objects |
Access policies
Four RLS policies onstorage.objects govern access to the bucket. All were created in migration 001:
article_images_public_read
Allows both anonymous and authenticated users to read (download) any object in the bucket.
article_images_auth_insert
Allows authenticated users only to upload new objects.
article_images_auth_update
Allows authenticated users to overwrite existing objects.
article_images_auth_delete
Allows authenticated users to delete objects from the bucket.
Only authenticated admin or editor users can upload and delete images. The
/admin routes are protected by the middleware in src/middleware.ts, which redirects unauthenticated requests to /admin/login.CDN URL format
Every object in the bucket has a public CDN URL in the following format:https://abcdefghijklmnop.supabase.co and the uploaded file is hero-imagen-politica.jpg, the public URL is:
articles.image_url and returned directly in API responses. Next.js image optimization is configured in next.config.mjs to allow images from *.supabase.co:
next.config.mjs
How images are uploaded
Images reach the bucket through two paths in the admin panel:Featured image field
Each article form has a dedicated featured image upload field. When you select a file, the admin panel uploads it to thearticle-images bucket using the authenticated Supabase client, then stores the resulting CDN URL in articles.image_url.
TipTap editor
The TipTap rich-text editor in the article form also supports in-body image insertion. Images embedded in article body content are uploaded to the samearticle-images bucket. The returned URL is embedded directly in the article’s HTML content stored in articles.content.
Image recommendations
Featured images
Use a 16:9 aspect ratio at a minimum of 1200 × 675 px. Featured images appear as the article hero and in article cards on the homepage and category pages.
Gallery images
Match the aspect ratio of your layout. 1200 × 800 px (3:2) works well for most editorial photography. Keep files under 2 MB to minimize load time.
Viewing and managing objects
You can browse, upload, and delete objects directly in the Supabase dashboard:- Go to Storage in the left sidebar.
- Click on the
article-imagesbucket. - Use the file browser to inspect, download, or delete individual objects.
