fix: remove redundant VITE_API_BASE fallback, use wizard config as sole source of truth for HF_BACKEND_BASE_URL
This commit is contained in:
@@ -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 WIZARD_BASE = `http://127.0.0.1:${WIZARD_PORT}`
|
||||||
|
|
||||||
const getApiBase = () => {
|
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'
|
type AppState = 'checking' | 'setup' | 'ready'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
const getApiBase = () => {
|
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({
|
const api = axios.create({
|
||||||
|
|||||||
Reference in New Issue
Block a user