Merge pull request #14 from LucasVbr/dev

feat(vercel): Add Speed Insights from Vercel
This commit is contained in:
Lucàs
2024-05-04 17:31:33 +02:00
committed by GitHub
4 changed files with 5 additions and 2 deletions
+1
View File
@@ -22,3 +22,4 @@ dist-ssr
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?
.vercel
BIN
View File
Binary file not shown.
+1
View File
@@ -12,6 +12,7 @@
"dependencies": { "dependencies": {
"@heroicons/react": "^2.1.3", "@heroicons/react": "^2.1.3",
"@reduxjs/toolkit": "^2.2.3", "@reduxjs/toolkit": "^2.2.3",
"@vercel/speed-insights": "^1.0.10",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-redux": "^9.1.2" "react-redux": "^9.1.2"
+3 -2
View File
@@ -1,3 +1,5 @@
import { SpeedInsights } from "@vercel/speed-insights/react"
import Navbar from './components/Navbar.tsx'; import Navbar from './components/Navbar.tsx';
import Footer from './components/Footer.tsx'; import Footer from './components/Footer.tsx';
import TodoCard from './components/todos/TodoCard.tsx'; import TodoCard from './components/todos/TodoCard.tsx';
@@ -7,12 +9,11 @@ export default function App() {
return ( return (
<div className={"min-h-screen bg-base-300"}> <div className={"min-h-screen bg-base-300"}>
<Navbar/> <Navbar/>
<main className={"w-full min-h-screen flex justify-center items-center"}> <main className={"w-full min-h-screen flex justify-center items-center"}>
<TodoCard/> <TodoCard/>
</main> </main>
<Footer/> <Footer/>
<SpeedInsights/>
</div> </div>
) )
} }