fix(dev): support admin access over LAN

This commit is contained in:
yeuimu
2026-08-21 10:53:47 +08:00
parent 6e5f7edbb7
commit a43353aa98
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -29,16 +29,16 @@ export default defineConfig({
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:3001',
target: 'http://127.0.0.1:3001',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
'/uploads': {
target: 'http://localhost:3001',
target: 'http://127.0.0.1:3001',
changeOrigin: true,
},
'/assets': {
target: 'http://localhost:3001',
target: 'http://127.0.0.1:3001',
changeOrigin: true,
},
},