diff --git a/.env.example b/.env.example index 39f85b99..c34412fe 100644 --- a/.env.example +++ b/.env.example @@ -7,5 +7,4 @@ PSQL_PASS= DATABASE_URL= DISCORD_CLIENT_ID= DISCORD_CLIENT_SECRET= -NEXT_PUBLIC_MEASUREMENT_ID= ``` \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 6d4fb4dc..c9037fd4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@auth/drizzle-adapter": "^0.3.2", "@hookform/resolvers": "^3.3.2", + "@next/third-parties": "^14.2.15", "@radix-ui/react-alert-dialog": "^1.0.5", "@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-dropdown-menu": "^2.0.6", @@ -1993,6 +1994,19 @@ "node": ">= 10" } }, + "node_modules/@next/third-parties": { + "version": "14.2.15", + "resolved": "https://registry.npmjs.org/@next/third-parties/-/third-parties-14.2.15.tgz", + "integrity": "sha512-15CvipE1p1GtlzVfbDfXPrAGIhzJJe75Yy6+GIBRTd36lu95BegRsUJwCxJYoKz47Q09stcU2gJDMduMGqrikw==", + "license": "MIT", + "dependencies": { + "third-party-capital": "1.0.20" + }, + "peerDependencies": { + "next": "^13.0.0 || ^14.0.0", + "react": "^18.2.0" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -11520,6 +11534,12 @@ "node": ">=0.8" } }, + "node_modules/third-party-capital": { + "version": "1.0.20", + "resolved": "https://registry.npmjs.org/third-party-capital/-/third-party-capital-1.0.20.tgz", + "integrity": "sha512-oB7yIimd8SuGptespDAZnNkzIz+NWaJCu2RMsbs4Wmp9zSDUM8Nhi3s2OOcqYuv3mN4hitXc8DVx+LyUmbUDiA==", + "license": "ISC" + }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", diff --git a/package.json b/package.json index 8d0fffcf..1c4b94b2 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "dependencies": { "@auth/drizzle-adapter": "^0.3.2", "@hookform/resolvers": "^3.3.2", + "@next/third-parties": "^14.2.15", "@radix-ui/react-alert-dialog": "^1.0.5", "@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-dropdown-menu": "^2.0.6", diff --git a/src/app/layout.tsx b/src/app/layout.tsx index ba913c25..d2bee2c4 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -7,7 +7,7 @@ import { TRPCReactProvider } from '@src/trpc/react'; import Sidebar from '@src/components/nav/Sidebar'; import { type Metadata } from 'next'; -import GoogleAnalytics from '@src/components/googleAnalytics'; +import { GoogleAnalytics } from '@next/third-parties/google' const inter = Inter({ subsets: ['latin'], @@ -43,12 +43,12 @@ export default function RootLayout({ }) { return ( -
{children}
+ ); diff --git a/src/components/googleAnalytics.tsx b/src/components/googleAnalytics.tsx deleted file mode 100644 index ea23b9ae..00000000 --- a/src/components/googleAnalytics.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import Script from 'next/script'; -import React from 'react'; - -const GoogleAnalytics = () => { - return ( - <> - - - ); -}; - -export default GoogleAnalytics;