# AI Start Here Before making changes, read these files in order: 1. docs/ai-project-context.md 2. docs/system-architecture.md 3. docs/next-steps.md 4. docs/handovers/latest.md (or the newest dated handover file) ## Project Plesk Agency Portal ## Rules - Make minimal safe changes - Do not weaken Supabase RLS - Preserve working deployment pipeline - Prefer extending existing patterns over rewrites - Treat `master` as production-ready ## Current Focus - Fix Supabase HTTPS/public URL - Validate auth flow - Keep CI/CD stable ## Deployment Summary - Jenkins builds Docker image - Image transferred via `docker save -> scp -> docker load` - App runs on `/opt/plesk-agency-portal` - Public app URL: `https://portal.rdbcloud.co.uk` - supabase URL: `https://supabase.rdbcloud.co.uk` ## Notes Use the docs folder as source of truth for current state and handover history. ## When updating the project - update docs/ai-project-context.md for current state - add a new file in docs/handovers/ - update docs/next-steps.md - keep this file short