diff --git a/surfsense_backend/.env.example b/surfsense_backend/.env.example index 2a0351d7b..349cb0307 100644 --- a/surfsense_backend/.env.example +++ b/surfsense_backend/.env.example @@ -1,12 +1,5 @@ DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/surfsense -SECRET_KEY=SECRET -NEXT_FRONTEND_URL=http://localhost:3000 - -#Celery Config -CELERY_BROKER_URL=redis://localhost:6379/0 -CELERY_RESULT_BACKEND=redis://localhost:6379/0 - #Celery Config CELERY_BROKER_URL=redis://localhost:6379/0 CELERY_RESULT_BACKEND=redis://localhost:6379/0 diff --git a/surfsense_web/app/dashboard/[search_space_id]/layout.tsx b/surfsense_web/app/dashboard/[search_space_id]/layout.tsx index 5cd9d5ad2..272276c66 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/layout.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/layout.tsx @@ -78,12 +78,6 @@ export default function DashboardLayout({ }, ], }, - { - title: "Podcasts", - url: `/dashboard/${search_space_id}/podcasts`, - icon: "Podcast", - items: [], - }, { title: "Logs", url: `/dashboard/${search_space_id}/logs`, diff --git a/surfsense_web/hooks/use-podcast.ts b/surfsense_web/hooks/use-podcast.ts deleted file mode 100644 index 461572333..000000000 --- a/surfsense_web/hooks/use-podcast.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { useCallback } from "react"; -import type { PodcastItem } from "@/app/dashboard/[search_space_id]/podcasts/podcasts-client"; - -export function usePodcast() { - const getPodcastByChatId = useCallback(async (chatId: number) => { - try { - const response = await fetch( - `${process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL}/api/v1/podcasts/by-chat/${chatId}`, - { - headers: { - Authorization: `Bearer ${localStorage.getItem("surfsense_bearer_token")}`, - }, - method: "GET", - } - ); - - if (!response.ok) { - const errorData = await response.json().catch(() => ({})); - throw new Error(errorData.detail || "Failed to fetch podcast"); - } - - return (await response.json()) as PodcastItem | null; - } catch (err: any) { - console.error("Error fetching podcast:", err); - throw err; - } - }, []); - - return { getPodcastByChatId }; -}