fix(dev): support admin access over LAN
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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}\"",
|
||||
|
||||
Reference in New Issue
Block a user