From 4335b28d65e73900912290235b574e4230a00382 Mon Sep 17 00:00:00 2001 From: iqubik Date: Sun, 5 Apr 2026 00:48:11 +0300 Subject: [PATCH] sync: bring client/Dockerfile and client/vite.config.ts to dp-custom state --- client/Dockerfile | 1 + client/vite.config.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/client/Dockerfile b/client/Dockerfile index e18fc7e..c19f6e5 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -9,6 +9,7 @@ COPY . . ENV VITE_API_URL=/api ENV VITE_LOG_LEVEL=debug +ENV VITE_SEND_LOGS_TO_BACKEND=true ENV VITE_APP_VERSION=2.1.2 RUN npm run build diff --git a/client/vite.config.ts b/client/vite.config.ts index c0ed45d..605854b 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -3,6 +3,19 @@ import react from '@vitejs/plugin-react' export default defineConfig({ plugins: [react()], + server: { + port: 8080, + proxy: { + '/api': { + target: 'http://localhost:3100', + changeOrigin: true + }, + '/bus': { + target: 'http://localhost:3100', + changeOrigin: true + } + } + }, test: { globals: true, environment: 'jsdom',