Skip to content

Commit c8a5cf1

Browse files
committed
chore: configure dev server
1 parent d4f3a63 commit c8a5cf1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

packages/agent-webapp/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"private": true,
66
"type": "module",
77
"scripts": {
8-
"dev": "vite --port 8000 --host",
8+
"start": "swa start",
9+
"dev": "concurrently \"npm:dev:*\" --kill-others",
10+
"dev:vite": "vite --port 5174 --host",
11+
"dev:api": "cd ../agent-api && npm run start",
912
"build": "vite build",
1013
"watch": "vite build --watch --minify false",
1114
"clean": "npx rimraf dist"

packages/agent-webapp/swa-cli.config.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"configurations": {
44
"registration-webapp": {
55
"appLocation": ".",
6-
"run": "npm run serve",
7-
"appDevserverUrl": "http://localhost:5173",
8-
"apiDevserverUrl": "http://localhost:7071",
6+
"run": "npm run dev",
7+
"appDevserverUrl": "http://localhost:5174",
8+
"apiDevserverUrl": "http://localhost:7072",
99
"appBuildCommand": "npm run build",
1010
"outputLocation": "dist"
1111
}

0 commit comments

Comments
 (0)