Skip to content

Commit 937fc58

Browse files
committed
Mock server: only watch the src/services/mock/ directory for changes
This avoids the mock server restarting unnecessarily
1 parent d21c9bb commit 937fc58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"preview": "node ./scripts/concurrently.cjs serve:jupyterhub preview",
1818
"serve": "node ./scripts/concurrently.cjs serve:jupyterhub serve:vue",
1919
"serve:vue": "vite --mode offline",
20-
"serve:jupyterhub": "nodemon -e js,mjs,cjs,json src/services/mock/json-server.cjs",
20+
"serve:jupyterhub": "nodemon src/services/mock/json-server.cjs --watch src/services/mock/",
2121
"test:component": "cypress open --component",
2222
"test:e2e": "yarn run serve e2e:open",
2323
"test:unit": "vitest",

0 commit comments

Comments
 (0)