Hardcode wizard base to 127.0.0.1

This commit is contained in:
Zhi
2026-03-14 10:22:36 +00:00
parent 7e06f9b28b
commit 9190c17abc
2 changed files with 1 additions and 4 deletions

View File

@@ -5,9 +5,7 @@ COPY package.json package-lock.json* ./
RUN npm install
COPY . .
ARG VITE_WIZARD_PORT=18080
ARG VITE_WIZARD_HOST=wizard
ENV VITE_WIZARD_PORT=$VITE_WIZARD_PORT
ENV VITE_WIZARD_HOST=$VITE_WIZARD_HOST
RUN npm run build
# Production stage — lightweight static server, no nginx

View File

@@ -18,8 +18,7 @@ import MonitorPage from '@/pages/MonitorPage'
import axios from 'axios'
const WIZARD_PORT = Number(import.meta.env.VITE_WIZARD_PORT) || 18080
const WIZARD_HOST = import.meta.env.VITE_WIZARD_HOST || "wizard"
const WIZARD_BASE = `http://${WIZARD_HOST}:${WIZARD_PORT}`
const WIZARD_BASE = `http://127.0.0.1:${WIZARD_PORT}`
type AppState = 'checking' | 'setup' | 'ready'