[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the Prefect documentation for this issue.
[X] I checked that this issue is related to Prefect and not one of its dependencies.
Bug summary
CLI command prefect server start starts the Prefect UI regardles of --no-ui parameter. More precisely, the parameter does not overload the setting PREFECT_UI_ENABLED.
The parameter sets environment variable PREFECT_API_SERVICES_UI, but in prefect.server.api.server:create_api_app the condition for mounting UI is based on PREFECT_UI_ENABLED setting.
I guess the same applies for prefect dev api (judging based on used PREFECT_API_SERVICES_UI, not tested)
First check
Bug summary
CLI command
prefect server start
starts the Prefect UI regardles of--no-ui
parameter. More precisely, the parameter does not overload the setting PREFECT_UI_ENABLED.The parameter sets environment variable PREFECT_API_SERVICES_UI, but in
prefect.server.api.server:create_api_app
the condition for mounting UI is based on PREFECT_UI_ENABLED setting.I guess the same applies for
prefect dev api
(judging based on used PREFECT_API_SERVICES_UI, not tested)The bug is present both in Prefect v2 and v3.
Reproduction
Error
No response
Versions (
prefect version
output)Additional context
No response