dev/mock-api.mjs answers the endpoints the screens call, with surrogate data, and keeps what is changed in memory (zones, scopes, users, groups, rules, sessions, the cache). `npm run mock` starts it on 127.0.0.1:5380, where the dev server's proxy already points. .claude/launch.json starts the mock and the console together in the preview pane. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
18 lines
331 B
JSON
18 lines
331 B
JSON
{
|
|
"version": "0.0.1",
|
|
"configurations": [
|
|
{
|
|
"name": "mock-api",
|
|
"runtimeExecutable": "node",
|
|
"runtimeArgs": ["dev/mock-api.mjs"],
|
|
"port": 5380
|
|
},
|
|
{
|
|
"name": "console-dev",
|
|
"runtimeExecutable": "npx",
|
|
"runtimeArgs": ["vite", "--port", "5173"],
|
|
"port": 5173
|
|
}
|
|
]
|
|
}
|