Skip to content

Commit

Permalink
feat: add react-scan for monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan308 committed Dec 8, 2024
1 parent 5700062 commit bf4ebd0
Show file tree
Hide file tree
Showing 3 changed files with 1,001 additions and 18 deletions.
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import "./global.css"
import { RootProvider } from "fumadocs-ui/provider"
import type { ReactNode } from "react"
import { Monitoring } from 'react-scan/dist/core/monitor/params/next'

import localFont from "next/font/local"
import { cn } from "@/lib/utils"
Expand Down Expand Up @@ -56,6 +57,7 @@ export default function Layout({ children }: { children: ReactNode }) {
lang="en"
suppressHydrationWarning
>
<Monitoring apiKey="ghGw-E3yKh1NoDZTbCHZa58NvITDqxIa" url="https://monitoring.react-scan.com/api/v1/ingest" />
<body className={cn(sans.variable, sans.className, mono.variable, "relative")}>
<RootProvider
// TODO include resources in search
Expand Down
Loading

0 comments on commit bf4ebd0

Please sign in to comment.