feat(server): add regression test for handling empty request bodies

feat(terminal): focus terminal on click
fix(vite): update API proxy path to avoid frontend route conflicts
This commit is contained in:
catlog22
2026-02-25 09:59:54 +08:00
parent 6c16c121d2
commit 45c61186c4
4 changed files with 123 additions and 4 deletions

View File

@@ -41,7 +41,8 @@ export default defineConfig({
strictPort: true,
proxy: {
// Backend API proxy
'/api': {
// Use `/api/` (not `/api`) to avoid accidentally proxying frontend routes like `/api-settings`.
'/api/': {
target: backendHttpTarget,
changeOrigin: true,
},