Files
PTSRaiAgent/web/vite.config.ts
T
Arxip222andClaude Opus 5.5 b8a93ce9d4 feat(web): patient web app with ЕМИАС (demo) and anonymous sign-in
A second channel to the same dialog engine as the Telegram bot: consent,
onboarding, scales and check-ins come from app/dialog; the bot is unchanged.

- API: /auth/emias (doctor's one-time connect code via EmiasMock),
  /auth/emias/demo (synthetic personas), /auth/anonymous (random token,
  nothing stored in the identity DB), /crisis/resources from crisis.yaml
- web/: React + TS + Vite, mobile-first, safe areas, hash routing,
  tokens and texts isolated for a Capacitor mobile build

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 07:57:00 +03:00

14 lines
496 B
TypeScript

import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
// Dev: the API runs on :8000 (uvicorn / docker compose); /api is proxied so the app needs no CORS.
// Build output is a static bundle (dist/) — the same bundle is wrapped by Capacitor for the mobile app.
export default defineConfig({
plugins: [react()],
base: "./",
server: {
port: 5173,
proxy: { "/api": { target: process.env.API_TARGET ?? "http://localhost:8000", changeOrigin: true } },
},
});