Skip to content

Commit

Permalink
Merge pull request #2 from CongLeSolutionX/development
Browse files Browse the repository at this point in the history
📈 analytic: Add SpeedInsights to track speed performance on Vercel
  • Loading branch information
CongLeSolutionX authored Dec 29, 2023
2 parents 456ea0a + 72a4356 commit ef67736
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build": "next build",
"build:analyze": "ANALYZE=true next build",
"build:docker": "DOCKER=true next build",
"dev": "next dev -p 3010",
"dev": "next dev -p 4010",
"docs": "lobe-i18n md && npm run workflow:docs",
"i18n": "npm run workflow:i18n && lobe-i18n",
"lint": "npm run lint:ts && npm run lint:style && npm run type-check && npm run lint:circular",
Expand Down Expand Up @@ -78,6 +78,7 @@
"@lobehub/tts": "latest",
"@lobehub/ui": "latest",
"@vercel/analytics": "^1",
"@vercel/speed-insights": "^1.0.2",
"ahooks": "^3",
"ai": "^2.2.22",
"antd": "^5",
Expand Down
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { SpeedInsights } from '@vercel/speed-insights/next';
import { Viewport } from 'next';
import { cookies } from 'next/headers';
import { PropsWithChildren } from 'react';
Expand Down Expand Up @@ -32,6 +33,7 @@ const RootLayout = ({ children }: PropsWithChildren) => {
defaultPrimaryColor={primaryColor?.value as any}
>
{children}
<SpeedInsights />
</Layout>
</StyleRegistry>
<Analytics />
Expand Down

0 comments on commit ef67736

Please sign in to comment.