From 72a43566c7241f94d21dbb8cbd16f39b8140ad1d Mon Sep 17 00:00:00 2001 From: CongLe Date: Thu, 28 Dec 2023 21:51:40 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20SpeedInsights=20and?= =?UTF-8?q?=20change=20local=20port=20to=204010?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- src/app/layout.tsx | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e97faff9e785..93176e4c62ff 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 16eda62b7a47..368f9ac2fc43 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,3 +1,4 @@ +import { SpeedInsights } from '@vercel/speed-insights/next'; import { Viewport } from 'next'; import { cookies } from 'next/headers'; import { PropsWithChildren } from 'react'; @@ -32,6 +33,7 @@ const RootLayout = ({ children }: PropsWithChildren) => { defaultPrimaryColor={primaryColor?.value as any} > {children} +