Get the dev server configuration for a project. Returns information about: - detected_type: The auto-detected project type (nodejs-vite, python-django, etc.) - detected_command: The default command for the detected type - custom_command: Any user-configured custom command -
(project_name: str)
| 350 | |
| 351 | @router.get("/config", response_model=DevServerConfigResponse) |
| 352 | async def get_devserver_config(project_name: str) -> DevServerConfigResponse: |
| 353 | """ |
| 354 | Get the dev server configuration for a project. |
| 355 | |
| 356 | Returns information about: |
| 357 | - detected_type: The auto-detected project type (nodejs-vite, python-django, etc.) |
| 358 | - detected_command: The default command for the detected type |
| 359 | - custom_command: Any user-configured custom command |
| 360 | - effective_command: The command that will actually be used (custom or detected) |
| 361 | |
| 362 | Args: |
| 363 | project_name: Name of the project |
| 364 | |
| 365 | Returns: |
| 366 | Configuration details for the project's dev server |
| 367 | """ |
| 368 | project_dir = get_project_dir(project_name) |
| 369 | config = get_project_config(project_dir) |
| 370 | |
| 371 | return DevServerConfigResponse( |
| 372 | detected_type=config["detected_type"], |
| 373 | detected_command=config["detected_command"], |
| 374 | custom_command=config["custom_command"], |
| 375 | effective_command=config["effective_command"], |
| 376 | ) |
| 377 | |
| 378 | |
| 379 | @router.patch("/config", response_model=DevServerConfigResponse) |
nothing calls this directly
no test coverage detected