From 7e17945e5616c2a95bf07de46b57da5ca69d648a Mon Sep 17 00:00:00 2001 From: seoyunje Date: Tue, 29 Sep 2026 17:59:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20Fix=20http-proxy-middleware?= =?UTF-8?q?=20v3=20pathFilter=20fallthrough=20causing=20404=20on=20non-API?= =?UTF-8?q?=20routes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/setupProxy.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/client/src/setupProxy.js b/client/src/setupProxy.js index da75db0..f404813 100644 --- a/client/src/setupProxy.js +++ b/client/src/setupProxy.js @@ -1,14 +1,17 @@ const { createProxyMiddleware } = require('http-proxy-middleware'); module.exports = (app) => { - app.use( - createProxyMiddleware({ - target: 'http://127.0.0.1:8000', - changeOrigin: true, - pathFilter: (path) => - path.startsWith('/api') || - path.startsWith('/static/uploads') || - path.startsWith('/static/explain'), - }) - ); + const proxy = createProxyMiddleware({ + target: 'http://127.0.0.1:8000', + changeOrigin: true, + }); + + // Filter before proxying so both v2 and v3 preserve frontend routes. + app.use((req, res, next) => { + const path = req.path; + const isBackendPath = ['/api', '/static/uploads', '/static/explain'].some( + (prefix) => path === prefix || path.startsWith(`${prefix}/`) + ); + return isBackendPath ? proxy(req, res, next) : next(); + }); }; \ No newline at end of file From 1b4ace5e1ded8a1013e86bd8d5b2855984a9e12d Mon Sep 17 00:00:00 2001 From: SEOYUNJE <141211605+SEOYUNJE@users.noreply.github.com> Date: Tue, 29 Sep 2026 09:06:43 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=B3=20Bump=20react=20image=20tag?= =?UTF-8?q?=20to=201.0.18=20in=20docker-compose.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4a044d2..ec94ed7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -62,7 +62,7 @@ services: - redis react: - image: seoyunje/deepguard-react:1.0.17 + image: seoyunje/deepguard-react:1.0.18 container_name: deepguard-react networks: [deepguard-network] ports: