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',