From b94896a0f8fa43b957a9bdd6ab57ada0ab8101af Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Sun, 27 Jul 2025 19:37:11 +0100
Subject: refactor: Extract meilisearch as a plugin

---
 apps/web/app/dashboard/layout.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'apps/web/app/dashboard/layout.tsx')

diff --git a/apps/web/app/dashboard/layout.tsx b/apps/web/app/dashboard/layout.tsx
index 670286ea..1471bfde 100644
--- a/apps/web/app/dashboard/layout.tsx
+++ b/apps/web/app/dashboard/layout.tsx
@@ -17,7 +17,7 @@ import {
   Tag,
 } from "lucide-react";
 
-import serverConfig from "@karakeep/shared/config";
+import { PluginManager, PluginType } from "@karakeep/shared/plugins";
 
 export default async function Dashboard({
   children,
@@ -43,7 +43,7 @@ export default async function Dashboard({
         icon: <Home size={18} />,
         path: "/dashboard/bookmarks",
       },
-      serverConfig.search.meilisearch
+      PluginManager.isRegistered(PluginType.Search)
         ? [
             {
               name: t("common.search"),
-- 
cgit v1.2.3-70-g09d2

