Skip to content

Commit 6926a9f

Browse files
committed
update pr
1 parent ebaccdd commit 6926a9f

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/prefect/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class VersionInfo(TypedDict("_FullRevisionId", {"full-revisionid": str})):
6969
__ui_v2_static_subpath__: pathlib.Path = __module_path__ / "server" / "ui_v2_build"
7070

7171
# The absolute path to the built V2 UI within the Python module
72-
__ui_v2_static_path__: pathlib.Path = __module_path__ / "server" / "ui-v2"
72+
__ui_v2_static_path__: pathlib.Path = __module_path__ / "server" / "ui_v2"
7373

7474
del _build_info, pathlib
7575

src/prefect/server/api/server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def create_ui_app(ephemeral: bool) -> FastAPI:
461461

462462
if v2_enabled:
463463
source_static_path = prefect.__ui_v2_static_path__
464-
static_subpath = prefect.__ui_v2_static_subpath__
464+
static_subpath = prefect.__ui_static_subpath__
465465
cache_key = f"v2:{prefect.__version__}:{base_url}"
466466
else:
467467
source_static_path = prefect.__ui_static_path__
@@ -528,7 +528,8 @@ def create_ui_static_subpath() -> None:
528528
):
529529
# Log which UI version is being served
530530
if v2_enabled:
531-
logger.info("Serving experimental V2 UI")
531+
ui_logger = logging.getLogger("ui_server")
532+
ui_logger.info("Serving experimental V2 UI")
532533

533534
# If the static files have already been copied, check if the base_url has changed
534535
# If it has, we delete the subpath directory and copy the files again

src/prefect/settings/models/server/ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ServerUISettings(PrefectBaseSettings):
2020
)
2121

2222
v2_enabled: bool = Field(
23-
default=False,
23+
default=True,
2424
description="Whether to serve the experimental V2 UI instead of the default V1 UI.",
2525
)
2626

0 commit comments

Comments
 (0)