diff --git a/src/components/layouts/RootLayout.tsx b/src/components/layouts/RootLayout.tsx index 603d17b..63304de 100644 --- a/src/components/layouts/RootLayout.tsx +++ b/src/components/layouts/RootLayout.tsx @@ -1,5 +1,4 @@ -import { cn } from "@/lib/utils" import Sidebar from "../shared/Sidebar" import { Toaster } from "../ui/toaster" @@ -16,7 +15,6 @@ export default function RootLayout({ children }: RootLayoutProps) { {children} - ) } diff --git a/src/pages/api/immich-proxy/thumbnail/[id].ts b/src/pages/api/immich-proxy/thumbnail/[id].ts index 669be33..e4042fe 100644 --- a/src/pages/api/immich-proxy/thumbnail/[id].ts +++ b/src/pages/api/immich-proxy/thumbnail/[id].ts @@ -41,7 +41,9 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) // Send the image data res.send(Buffer.from(imageBuffer)) } catch (error) { + + res.redirect("https://placehold.co/400") console.error('Error:', error) - res.status(500).json({ message: 'Internal Server Error' }) + // res.status(500).json({ message: 'Internal Server Error' }) } } \ No newline at end of file