chore: update Next.js and third-party dependencies

- Upgraded Next.js from version 16.0.1 to 16.0.7 in package.json and pnpm-lock.yaml.
- Added @next/third-parties dependency at version 16.0.7 to enhance third-party integration.
- Integrated Google Analytics component from @next/third-parties into the layout for improved tracking.
This commit is contained in:
Mauricio Siu
2025-12-07 06:14:23 -06:00
parent 19e7bca63b
commit 8f334c6d1f
3 changed files with 54 additions and 141 deletions

View File

@@ -2,6 +2,7 @@ import { RootProvider } from 'fumadocs-ui/provider/next';
import './global.css';
import { Inter } from 'next/font/google';
import type { Metadata } from 'next';
import { GoogleAnalytics } from '@next/third-parties/google';
const inter = Inter({
subsets: ['latin'],
@@ -26,6 +27,7 @@ export default function Layout({ children }: LayoutProps<'/'>) {
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

@@ -12,6 +12,7 @@
"build:docs": "npm run fix-openapi && node generate-docs.mjs"
},
"dependencies": {
"@next/third-parties": "16.0.7",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
@@ -20,7 +21,7 @@
"fumadocs-openapi": "10.1.1",
"fumadocs-ui": "16.2.3",
"lucide-react": "^0.552.0",
"next": "16.0.1",
"next": "16.0.7",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"shiki": "3.19.0",