Fix LAN API access and dev proxy routing

This commit is contained in:
2026-03-01 14:08:48 -03:00
parent 48cfc79b5f
commit 3d280396ae
6 changed files with 15 additions and 13 deletions

View File

@@ -10,5 +10,11 @@ export default defineConfig({
server: {
host: '0.0.0.0',
port: 5173,
proxy: {
'/api/v1': {
target: process.env.VITE_DEV_PROXY_TARGET ?? 'http://localhost:8000',
changeOrigin: true,
},
},
},
});