0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix: use port 5001 for ui dev (#125)

This commit is contained in:
Gao Sun 2021-10-08 14:10:44 +08:00 committed by GitHub
parent a079827b84
commit 0b23a5a793
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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,
});

View file

@ -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",