Skip to content

Commit ff13acc

Browse files
feat: added vercel analytics and and speed insights
1 parent b19e61e commit ff13acc

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed

apps/frontend/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"@dxp/framework": "^0.2.1",
2828
"@dxp/integrations.mocked": "^0.4.4",
2929
"@dxp/ui": "*",
30+
"@vercel/analytics": "^1.5.0",
31+
"@vercel/speed-insights": "^1.2.0",
3032
"class-variance-authority": "^0.7.1",
3133
"date-fns": "^4.1.0",
3234
"dotenv-cli": "^8.0.0",

apps/frontend/src/app/[locale]/layout.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Analytics } from '@vercel/analytics/next';
2+
import { SpeedInsights } from '@vercel/speed-insights/next';
13
import { SessionProvider } from 'next-auth/react';
24
import { NextIntlClientProvider } from 'next-intl';
35
import { getMessages, setRequestLocale } from 'next-intl/server';
@@ -53,6 +55,9 @@ export default async function RootLayout({ children, params }: Props) {
5355
<TooltipProvider>{children}</TooltipProvider>
5456
</NextIntlClientProvider>
5557
</SessionProvider>
58+
59+
<Analytics />
60+
<SpeedInsights />
5661
</html>
5762
);
5863
}

package-lock.json

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)