From b1d3546f70eddf7c12f74e67a67fb0a7ac50583c Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Sat, 21 Feb 2026 19:50:59 -0600 Subject: [PATCH] Document shared Supabase pattern for web-dev agent Added to web-dev agent rules: - Shared Supabase project (qnatchrjlpehiijwtreh) for all Vercel apps - Table naming convention: _tableName - Copy .env.local from existing projects - Shared auth across apps - Migration scripts with prefixed table names Updated SPECIALIZED_AGENTS.md documentation with pattern details --- SPECIALIZED_AGENTS.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SPECIALIZED_AGENTS.md b/SPECIALIZED_AGENTS.md index 8e2c7ce..234dda6 100644 --- a/SPECIALIZED_AGENTS.md +++ b/SPECIALIZED_AGENTS.md @@ -69,11 +69,20 @@ openclaw agents switch ios-dev - Error boundaries & loading states - Semantic HTML & accessibility - **Supabase for backend/database (preferred)** +- **Shared Supabase pattern for all Vercel apps** (same project, prefixed tables) - Supabase SSR auth patterns - Server components for data fetching - Proper RLS policies - Service role key only in API routes +**Shared Supabase Pattern (IMPORTANT):** +All Vercel-deployed web apps share the same Supabase project (`qnatchrjlpehiijwtreh`): +- Copy `.env.local` from existing project (blog-backup or gantt-board) +- **Table naming:** MUST use `_tableName` format +- Examples: `blog_messages`, `mission-control_tasks`, `heartbeat-status` +- This prevents table name collisions across apps +- Auth is shared (same users table across all apps) + **Usage:** ```bash # Switch to web agent