feat: update dependencies to Next.js 15.4.5 and integrate Google Analytics from @next/third-parties

This commit is contained in:
Mauricio Siu
2025-08-04 00:07:08 -06:00
parent 0331522f50
commit df7fa3c951
5 changed files with 349 additions and 51 deletions

View File

@@ -2,7 +2,7 @@ import "./global.css";
import { RootProvider } from "fumadocs-ui/provider";
import { Inter } from "next/font/google";
import type { ReactNode } from "react";
import { GoogleAnalytics } from "@next/third-parties/google";
const inter = Inter({
subsets: ["latin"],
});
@@ -14,6 +14,7 @@ export default async function Layout({
return (
<html lang="en" className={inter.className} suppressHydrationWarning>
<body className="flex flex-col min-h-screen">
<GoogleAnalytics gaId="G-HZ71HG38HN" />
<RootProvider>{children}</RootProvider>
</body>
</html>

View File

@@ -19,7 +19,8 @@
"fumadocs-mdx": "11.1.1",
"lucide-react": "^0.456.0",
"fumadocs-openapi": "5.5.9",
"shiki": "1.22.2"
"shiki": "1.22.2",
"@next/third-parties": "15.4.5"
},
"devDependencies": {
"tsx": "^4.19.2",