mirror of
https://github.com/temetro/temetro.git
synced 2026-08-27 19:06:52 +00:00
frontend: runtime backend URL (LAN), voice dictation, version + update UI
Resolve the backend URL from the current host at runtime (lib/backend-url.ts) so one build works on localhost and any clinic LAN IP without a rebuild; used by the API client, auth client, and socket. Wire the AI-chat mic to the Web Speech API with graceful fallback. Add a Settings "About & updates" panel (current/latest version, update command, shareable network address) and an optional dismissible update banner. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+5
-2
@@ -13,8 +13,11 @@ RUN npm ci --no-audit --no-fund \
|
||||
# --- build (Next.js standalone output) -------------------------------------
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
# NEXT_PUBLIC_* values are inlined at build time.
|
||||
ARG NEXT_PUBLIC_API_URL=http://localhost:4000
|
||||
# NEXT_PUBLIC_* values are inlined at build time. We deliberately leave the API
|
||||
# URL EMPTY by default: the app derives the backend URL from the browser host at
|
||||
# runtime (see lib/backend-url.ts), so one prebuilt image works on localhost and
|
||||
# any clinic LAN IP. Set NEXT_PUBLIC_API_URL only to pin a fixed/proxied URL.
|
||||
ARG NEXT_PUBLIC_API_URL=
|
||||
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user