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,
},
},
+2
View File
@@ -3,6 +3,8 @@
"private": true,
"scripts": {
"dev": "turbo run dev",
"dev:admin": "turbo run dev --filter=@inkreach/api --filter=@inkreach/admin",
"dev:api": "pnpm --filter @inkreach/api dev",
"build": "turbo run build",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,js,json,md,vue}\"",