From 4f7925dfd8999a531ae83290497af8b9d4f38811 Mon Sep 17 00:00:00 2001 From: dswbx Date: Fri, 5 Dec 2025 17:12:07 +0100 Subject: [PATCH] bump rc, hide flows by `isDebug` instead --- app/package.json | 2 +- app/src/core/env.ts | 2 +- app/src/ui/layouts/AppShell/Header.tsx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/package.json b/app/package.json index bc9df6d..b3fa2f2 100644 --- a/app/package.json +++ b/app/package.json @@ -3,7 +3,7 @@ "type": "module", "sideEffects": false, "bin": "./dist/cli/index.js", - "version": "0.20.0-rc.1", + "version": "0.20.0-rc.2", "description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.", "homepage": "https://bknd.io", "repository": { diff --git a/app/src/core/env.ts b/app/src/core/env.ts index 7771073..3d7c4ca 100644 --- a/app/src/core/env.ts +++ b/app/src/core/env.ts @@ -8,7 +8,7 @@ export function isDebug(): boolean { try { // @ts-expect-error - this is a global variable in dev return is_toggled(__isDev); - } catch (e) { + } catch (_e) { return false; } } diff --git a/app/src/ui/layouts/AppShell/Header.tsx b/app/src/ui/layouts/AppShell/Header.tsx index 14948e8..a4d9a04 100644 --- a/app/src/ui/layouts/AppShell/Header.tsx +++ b/app/src/ui/layouts/AppShell/Header.tsx @@ -1,4 +1,4 @@ -import { SegmentedControl, Tooltip } from "@mantine/core"; +import { SegmentedControl } from "@mantine/core"; import { IconApi, IconBook, IconKeyOff, IconSettings, IconUser } from "@tabler/icons-react"; import { TbDatabase, @@ -24,7 +24,7 @@ import { useLocation } from "wouter"; import { NavLink } from "./AppShell"; import { autoFormatString } from "core/utils"; import { appShellStore } from "ui/store"; -import { getVersion } from "core/env"; +import { getVersion, isDebug } from "core/env"; import { McpIcon } from "ui/routes/tools/mcp/components/mcp-icon"; import { useAppShellAdminOptions } from "ui/options"; @@ -45,7 +45,7 @@ export function HeaderNavigation() { { label: "Media", href: "/media", Icon: TbPhoto }, ]; - if (import.meta.env.DEV || Object.keys(config.flows?.flows ?? {}).length > 0) { + if (isDebug() || Object.keys(config.flows?.flows ?? {}).length > 0) { items.push({ label: "Flows", href: "/flows", Icon: TbHierarchy2 }); }