Skip to content

Commit b7b7d53

Browse files
committed
feature : Vercel Speed Insights 설정
1 parent bc6c7e5 commit b7b7d53

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13+
"@vercel/speed-insights": "^1.0.14",
1314
"chart.js": "^4.4.5",
1415
"chartjs-plugin-datalabels": "^2.2.0",
1516
"react": "^18.3.1",

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { SpeedInsights } from "@vercel/speed-insights/react";
12
import { BrowserRouter, Route, Routes } from "react-router-dom";
23
import Home from ".";
34
import "./App.css";
@@ -7,6 +8,7 @@ function App() {
78
return (
89
<ChartProvider>
910
<BrowserRouter>
11+
<SpeedInsights />
1012
<Routes>
1113
<Route path="/" element={<Home />} />
1214
</Routes>

0 commit comments

Comments
 (0)