diff --git a/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx b/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx
index 4885b327494..fb1c5140345 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx
@@ -363,17 +363,20 @@ export function useCreateCommands(options?: CommandOptions) {
.filter(Boolean) as ICommand[]
}, [ref, allIntegrations, installedIntegrationIds])
+ // Observability commands are only available on the platform, not for self-hosted/CLI
const observabilityCommands = useMemo(
() => [
- ...(IS_PLATFORM && reportsEnabled
- ? ([
- {
- id: 'create-observability-report',
- name: 'Create Custom Report',
- route: `/project/${ref}/observability/api-overview?newReport=true`,
- icon: () => ,
- },
- ].filter(Boolean) as ICommand[])
+ ...(IS_PLATFORM
+ ? reportsEnabled
+ ? ([
+ {
+ id: 'create-observability-report',
+ name: 'Create Custom Report',
+ route: `/project/${ref}/observability/api-overview?newReport=true`,
+ icon: () => ,
+ },
+ ].filter(Boolean) as ICommand[])
+ : []
: []),
],
[ref, reportsEnabled]
diff --git a/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsx b/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsx
index 0bab5712ebf..92d2d101457 100644
--- a/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsx
+++ b/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsx
@@ -141,16 +141,19 @@ export const generateOtherRoutes = (
icon: ,
link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/advisors/security`),
},
- ...(IS_PLATFORM && reportsEnabled
- ? [
- {
- key: 'observability',
- label: 'Observability',
- disabled: !isProjectActive,
- icon: ,
- link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/observability`),
- },
- ]
+ // Observability is only available on the platform, not for self-hosted/CLI
+ ...(IS_PLATFORM
+ ? reportsEnabled
+ ? [
+ {
+ key: 'observability',
+ label: 'Observability',
+ disabled: !isProjectActive,
+ icon: ,
+ link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/observability`),
+ },
+ ]
+ : []
: []),
{
key: 'logs',