mirror of
https://github.com/Dokploy/website.git
synced 2026-06-30 19:45:25 +02:00
feat: update dependencies to Next.js 15.4.5 and integrate Google Analytics from @next/third-parties
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -4,6 +4,8 @@ import { NextIntlClientProvider } from "next-intl";
|
||||
import { getMessages } from "next-intl/server";
|
||||
import { Inter, Lexend } from "next/font/google";
|
||||
import type { ReactNode } from "react";
|
||||
import { GoogleAnalytics } from "@next/third-parties/google";
|
||||
|
||||
type Props = {
|
||||
children: ReactNode;
|
||||
};
|
||||
@@ -61,6 +63,7 @@ export default async function RootLayout({
|
||||
)}
|
||||
>
|
||||
<body>
|
||||
<GoogleAnalytics gaId="G-0RTZ5EPB26" />
|
||||
<NextIntlClientProvider messages={messages}>
|
||||
{children}
|
||||
</NextIntlClientProvider>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
},
|
||||
"browserslist": "defaults, not ie <= 11",
|
||||
"dependencies": {
|
||||
"@next/third-parties": "15.4.5",
|
||||
"hast-util-to-jsx-runtime": "2.3.5",
|
||||
"@headlessui/react": "^2.2.0",
|
||||
"@headlessui/tailwindcss": "^0.2.0",
|
||||
@@ -33,7 +34,7 @@
|
||||
"clsx": "^2.1.0",
|
||||
"framer-motion": "^11.3.19",
|
||||
"lucide-react": "0.364.0",
|
||||
"next": "15.2.0",
|
||||
"next": "15.4.5",
|
||||
"next-intl": "^3.26.5",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
Reference in New Issue
Block a user