fix: URLs relatives pour VaR et Config (bypass proxy corrigé)

Remplace http://localhost:8000 par des URLs relatives (/api/...)
pour passer par le proxy Vite/Nginx comme toutes les autres pages.
Cause du NetworkError en prod Docker.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OpenSquared
2026-06-20 06:27:43 +02:00
parent b4f3089c58
commit 67546d39af
2 changed files with 5 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ import { useSources, useUpdateSources, useUpdateApiKeys, useConfig, useAiStatus,
import { Settings, Key, Globe, CheckCircle, XCircle, AlertCircle, Save, Eye, EyeOff, Brain, SlidersHorizontal, RefreshCw, Zap, Plus, Trash2, Pencil, X, Lock, Gauge, DollarSign } from 'lucide-react'
import clsx from 'clsx'
const API = 'http://localhost:8000'
const API = ''
const SOURCE_CATEGORIES = {
'Flux RSS actifs': ['reuters_world', 'reuters_business', 'reuters_energy', 'ap_top', 'aljazeera', 'ft', 'bloomberg'],