From c3959d13e251467a83ff58e66d976b3296a2a19b Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Mon, 21 Sep 2026 17:28:04 +0200 Subject: [PATCH] fix: merge vite dev proxy into existing server block Authored By: TDvorak Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- app/frontend/vite.config.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/app/frontend/vite.config.ts b/app/frontend/vite.config.ts index 441b7cd..a361aa8 100644 --- a/app/frontend/vite.config.ts +++ b/app/frontend/vite.config.ts @@ -6,16 +6,6 @@ import path from 'path' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], - server: { - proxy: { - // Same-origin API path for dev - matches the nginx proxy in the shipped image - '/api': { - target: 'http://localhost:8082', - changeOrigin: true, - ws: true, - }, - }, - }, test: { globals: true, environment: 'happy-dom', @@ -64,6 +54,14 @@ export default defineConfig({ fs: { // Allow serving files from project root allow: ['..'] + }, + proxy: { + // Same-origin API path for dev - matches the nginx proxy in the shipped image + '/api': { + target: 'http://localhost:8082', + changeOrigin: true, + ws: true, + }, } }, // Preview server optimization