feat(beta): public spaces (#2473)

This commit is contained in:
Philip Okugbe
2026-09-05 11:52:10 +01:00
committed by GitHub
parent f4796c982e
commit 876f3da1b2
117 changed files with 7592 additions and 715 deletions
+7
View File
@@ -32,6 +32,13 @@ api.interceptors.response.use(
const url = new URL(error.request.responseURL)?.pathname;
if (url === "/api/auth/collab-token") return;
if (window.location.pathname.startsWith("/share/")) return;
// public docs probe authed endpoints; reject without the login redirect
if (
window.location.pathname === "/docs" ||
window.location.pathname.startsWith("/docs/")
) {
break;
}
// Handle unauthorized error
redirectToLogin();
+4
View File
@@ -43,6 +43,10 @@ export function isCloud(): boolean {
return castToBoolean(getConfigValue("CLOUD"));
}
export function isBetaPublicSpaces(): boolean {
return castToBoolean(getConfigValue("BETA_PUBLIC_SPACES"));
}
export function getAiVectorDriver(): string {
return getConfigValue("AI_VECTOR_DRIVER");
}