From 1a20a1050b94f6dcd481db9e40f425ce9f6d99c9 Mon Sep 17 00:00:00 2001 From: orion Date: Wed, 15 Apr 2026 05:00:56 +0000 Subject: [PATCH] fix: remove redundant VITE_API_BASE fallback, use wizard config as sole source of truth for HF_BACKEND_BASE_URL --- src/App.tsx | 2 +- src/services/api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 81c2ccf..085db9c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -26,7 +26,7 @@ const WIZARD_PORT = Number(import.meta.env.VITE_WIZARD_PORT) || 18080 const WIZARD_BASE = `http://127.0.0.1:${WIZARD_PORT}` const getApiBase = () => { - return localStorage.getItem('HF_BACKEND_BASE_URL') || import.meta.env.VITE_API_BASE || 'http://127.0.0.1:8000' + return localStorage.getItem('HF_BACKEND_BASE_URL') } type AppState = 'checking' | 'setup' | 'ready' diff --git a/src/services/api.ts b/src/services/api.ts index 6ead39a..5bee417 100644 --- a/src/services/api.ts +++ b/src/services/api.ts @@ -1,7 +1,7 @@ import axios from 'axios' const getApiBase = () => { - return localStorage.getItem('HF_BACKEND_BASE_URL') || import.meta.env.VITE_API_BASE || 'http://127.0.0.1:8000' + return localStorage.getItem('HF_BACKEND_BASE_URL') } const api = axios.create({