changes
Some checks failed
Build Org Website / build (push) Failing after 52s

This commit is contained in:
2026-05-07 23:54:01 +01:00
parent 97f497855f
commit 7ffca5e39b
6 changed files with 48 additions and 19 deletions

View File

@@ -399,9 +399,13 @@ def page_to_dict(page: ContentPage) -> dict[str, Any]:
def server_diagnostics() -> dict[str, Any]:
pages = list_pages()
try:
cwd = Path.cwd().as_posix()
except OSError as exc:
cwd = f"<unavailable: {exc}>"
return {
"root": ROOT.as_posix(),
"cwd": Path.cwd().as_posix(),
"cwd": cwd,
"executable": sys.executable,
"pid": os.getpid(),
"pageCount": len(pages),