Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

show vault vectordb managemnt

Ahmed Essam9da519bade6e
diff --git a/packages/app/src/react/features/vault/pages/VaultPage.tsx b/packages/app/src/react/features/vault/pages/VaultPage.tsx
index fbafabfa..694e9212 100644
--- a/packages/app/src/react/features/vault/pages/VaultPage.tsx
+++ b/packages/app/src/react/features/vault/pages/VaultPage.tsx
@@ -5,6 +5,7 @@ import { TooltipProvider } from '@src/react/shared/components/ui/tooltip';
import { PluginComponents } from '@src/react/shared/plugins/PluginComponents';
import { PluginTarget } from '@src/react/shared/plugins/Plugins';
import { errorToast, successToast } from '@src/shared/components/toast';
+import { builderStore } from '@src/shared/state_stores/builder/store';
import { Loader2 } from 'lucide-react';
import React, { useEffect, useMemo } from 'react';
import { CiExport } from 'react-icons/ci';
@@ -50,6 +51,10 @@ export default function VaultPage() {
}
};
+ const isOnDevSAAS = builderStore.getState().serverStatus?.env == 'DEV' &&
+ builderStore.getState().serverStatus?.edition == 'enterprise' &&
+ !window.location.hostname.includes('smythos.com');
+
useEffect(() => {
if (window.location.hash) {
async function scrollToHash() {
@@ -102,7 +107,7 @@ export default function VaultPage() {
<PluginComponents targetId={PluginTarget.VaultPageEnterpriseModels} />
<OAuthConnections />
- {window.location.hostname === 'localhost' && <VectorDatabases />}
+ {isOnDevSAAS && <VectorDatabases />}
<ErrorBoundarySuspense
loadingFallback={<div>Loading...</div>}