Spaces:
Running
Running
Commit History
-
fix: production API base URL fallback β use relative paths on non-localhost browserβ
Ashraf Al-Kassem +1: Claude Sonnet 4.6NEXT_PUBLIC_API_BASE_URL is not baked into the Stage 1 build (set in Stage 2 after the frontend is already built), so process.env.NEXT_PUBLIC_API_BASE_URL is undefined in the client bundle on HuggingFace. The old fallback returned 'http://127.0.0.1:8000' for any non-localhost browser, which is the client's own loopback β inaccessible from HF β blocking all client-side API calls including Google OAuth. Fix: when running in the browser on a non-localhost host, return '' so fetch uses relative paths (/api/v1/...). nginx then proxies /api/* to the FastAPI backend. SSR (window === undefined) continues to use the direct Docker-internal address http://127.0.0.1:8000. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>3b7374c
-
feat(website): natively merge marketing website into frontend application; resolve HF deployment routing collisions
Ashraf Al-Kassem86e8e8d
-
fix: eliminate 307 redirects that break login and API calls behind HF proxyβ
Ashraf Al-Kassem +1: Claude Opus 4.6The previous trailing-slash normalization in api.ts inadvertently broke login (POST /auth/login/ β 307 β /auth/login, losing FormData). Root cause: FastAPI routes defined as @router.get("/") only match paths WITH trailing slash, causing 307 redirects for requests WITHOUT one. Behind HuggingFace's reverse proxy, these redirects silently fail. Fix: Change route definitions from "/" to "" so they match the exact paths the frontend sends (no trailing slash). Revert the frontend trailing-slash hack. Routes fixed: prompt_config (GET, POST), integrations (GET), workspaces (GET, POST), automations (GET). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>721b3fc -
fix: resolve Prompt Studio and Integration Hub frontend failuresβ
Ashraf Al-Kassem +1: Claude Opus 4.6- Add trailing slash normalization to api.ts and admin-api.ts to prevent FastAPI 307 redirects that fail behind HuggingFace's reverse proxy - Add production origin (hf.space) to CORS allow_origins in main.py - Fix Integration Hub silent failure: show all provider cards with error banner when backend is unreachable instead of blank page Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>38213a5
-
feat: LeadPilot β full project commit (Missions 1β13)β
Ashraf Al-Kassem +1: Claude Sonnet 4.6Backend (FastAPI + SQLModel + Alembic, Python 3.9): - Auth: signup, login, forgot/reset, email verification, OAuth (Google) - Workspace management + multi-tenancy + member invites - Integrations: Zoho CRM, WhatsApp, Meta webhooks - Automation engine: flows, versions, execution engine - Prompt studio: configs, versions, test chat - Email system: SendGrid/SMTP/console, outbox, audit log - Dispatch queue: outbound messaging + retry/dead-letter - Inbox + human takeover - Analytics + diagnostics - Admin control plane: RBAC, module toggles, impersonation (Mission 13) - 57 tests, all passing Frontend (Next.js 16 + React 19 + TypeScript + Tailwind 4): - Full product UI across all missions - Admin portal: login, users, workspaces, modules, audit log, monitoring Deployment: Docker, nginx, HuggingFace Spaces, GitHub Actions CI Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>8d7950f