- Updated docker-compose.yml to allow disabling embedded Ollama via environment variable. - Refactored Dockerfile and Dockerfile.dev for improved dependency management and installation process. - Enhanced FastAPI migration scripts to handle orphaned Alembic revisions and added new database migration logic. - Improved error handling in background tasks and Codex authentication endpoints. - Added support for font file uploads with better validation and extraction of font names. - Introduced new image search functionality with support for Pexels and Pixabay APIs.
26 lines
646 B
TypeScript
26 lines
646 B
TypeScript
"use client";
|
|
|
|
import NextError from "next/error";
|
|
import { useEffect } from "react";
|
|
|
|
export default function GlobalError({
|
|
error,
|
|
}: {
|
|
error: Error & { digest?: string };
|
|
}) {
|
|
useEffect(() => {
|
|
console.error("Global error:", error);
|
|
}, [error]);
|
|
|
|
return (
|
|
<html lang="en">
|
|
<body>
|
|
{/* `NextError` is the default Next.js error page component. Its type
|
|
definition requires a `statusCode` prop. However, since the App Router
|
|
does not expose status codes for errors, we simply pass 0 to render a
|
|
generic error message. */}
|
|
<NextError statusCode={0} />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|