404 on /api/ai indicates stale container; deploy script now uses --no-cache, stops PM2/port conflicts, and verifies /api/health. Co-authored-by: Cursor <cursoragent@cursor.com>