Changed error boundary to cover both full hub and disaptch app
This commit is contained in:
@@ -2,6 +2,7 @@ import { Geist, Geist_Mono } from "next/font/google";
|
||||
import { NextAuthSessionProvider } from "./_components/AuthSessionProvider";
|
||||
import { getServerSession } from "./api/auth/[...nextauth]/auth";
|
||||
import "./globals.css";
|
||||
import { CustomErrorBoundary } from "_components/ErrorBoundary";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
@@ -24,7 +25,7 @@ const RootLayout = async ({
|
||||
<html lang="en">
|
||||
<NextAuthSessionProvider session={session}>
|
||||
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
|
||||
{children}
|
||||
<CustomErrorBoundary>{children}</CustomErrorBoundary>
|
||||
</body>
|
||||
</NextAuthSessionProvider>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user