#755 — Dynamic Config Loading
Repo: Twill-AI/twill-ai-ui State: closed | Status: done Assignee: nadddder, raymondehizoba
Created: 2025-10-08 · Updated: 2025-10-28
Description
Update frontend config loading to fetch partner-specific configuration based on current hostname instead of static config.json file.
AC:
-
config.service.tsupdated to detect hostname -
Calls
GET /api/v1/whitelabel/configon load (referer domain is automatically extracted from headers) -
Caches config in sessionStorage for performance
-
Falls back to default config if API fails
-
Config includes:
Partner ID- Branding (logo, colors, company name)
Facade API URL
-
Config loading happens before app initialization
-
Loading spinner shown while fetching config
-
Error handling for network failures
-
Works in both development and production
-
Supports localhost development with default config
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets