diff --git a/src/components/widgets/deploy/deploy.jsx b/src/components/widgets/deploy/deploy.jsx index a9243aca..e4a2949f 100644 --- a/src/components/widgets/deploy/deploy.jsx +++ b/src/components/widgets/deploy/deploy.jsx @@ -24,7 +24,8 @@ function formatTime(iso) { export default function Deploy({ options }) { const { service, label, apiBase = "/deploy-api" } = options ?? {}; const bp = process.env.NEXT_PUBLIC_BASE_PATH ?? ""; - const statusUrl = service ? `${bp}${apiBase}/status/${service}` : null; + // SWR middleware already prepends bp, so statusUrl must NOT include it + const statusUrl = service ? `${apiBase}/status/${service}` : null; const { data, mutate } = useSWR(statusUrl, { refreshInterval: (d) => (d?.status === "running" ? 2000 : 10000),