From 0b23a5a79306f3a97beafdff015514c96aa657d2 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 8 Oct 2021 14:10:44 +0800 Subject: [PATCH] fix: use port 5001 for ui dev (#125) --- packages/core/src/middleware/koa-ui-proxy.ts | 2 +- packages/ui/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/middleware/koa-ui-proxy.ts b/packages/core/src/middleware/koa-ui-proxy.ts index 782f979ff..fb00336b9 100644 --- a/packages/core/src/middleware/koa-ui-proxy.ts +++ b/packages/core/src/middleware/koa-ui-proxy.ts @@ -19,7 +19,7 @@ export default function koaUIProxy< const uiProxy: Middleware = isProduction ? serveStatic(PATH_TO_UI_DIST) : proxy('*', { - target: 'http://localhost:5000', + target: 'http://localhost:5001', changeOrigin: true, logs: true, }); diff --git a/packages/ui/package.json b/packages/ui/package.json index 8f2d9535f..c242b66fd 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -8,7 +8,7 @@ "precommit": "lint-staged", "dev:tsc": "tsc -b -w --preserveWatchOutput", "dev:razzle": "razzle start", - "dev": "PORT=5000 concurrently -c \"blue,cyan\" -k -n \"ui:tsc,ui:razzle\" \"pnpm:dev:tsc\" \"pnpm:dev:razzle\"", + "dev": "PORT=5001 concurrently -c \"blue,cyan\" -k -n \"ui:tsc,ui:razzle\" \"pnpm:dev:tsc\" \"pnpm:dev:razzle\"", "start": "NODE_ENV=production node build/server.js", "build": "tsc -b && razzle build --noninteractive", "lint": "eslint --ext .ts --ext .tsx src",