diff --git a/package-lock.json b/package-lock.json index cf59efc..749c419 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "@react-three/rapier": "^1.5.0", "@types/three": "^0.168.0", "@vercel/analytics": "^1.4.1", + "@vercel/speed-insights": "^2.0.0", "gsap": "^3.12.7", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -2107,6 +2108,44 @@ } } }, + "node_modules/@vercel/speed-insights": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-2.0.0.tgz", + "integrity": "sha512-jwkNcrTeafWxjmWq4AHBaptSqZiJkYU5adLC9QBSqeim0GcqDMgN5Ievh8OG1rJ6W3A4l1oiP7qr9CWxGuzu3w==", + "license": "Apache-2.0", + "peerDependencies": { + "@sveltejs/kit": "^1 || ^2", + "next": ">= 13", + "nuxt": ">= 3", + "react": "^18 || ^19 || ^19.0.0-rc", + "svelte": ">= 4", + "vue": "^3", + "vue-router": "^4" + }, + "peerDependenciesMeta": { + "@sveltejs/kit": { + "optional": true + }, + "next": { + "optional": true + }, + "nuxt": { + "optional": true + }, + "react": { + "optional": true + }, + "svelte": { + "optional": true + }, + "vue": { + "optional": true + }, + "vue-router": { + "optional": true + } + } + }, "node_modules/@vitejs/plugin-react": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", diff --git a/package.json b/package.json index d76e7c6..2fa181b 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@react-three/rapier": "^1.5.0", "@types/three": "^0.168.0", "@vercel/analytics": "^1.4.1", + "@vercel/speed-insights": "^2.0.0", "gsap": "^3.12.7", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/src/App.tsx b/src/App.tsx index 23e74a6..ef9be22 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,6 @@ import { lazy, Suspense, useEffect, useState } from "react"; import "./App.css"; +import { SpeedInsights } from "@vercel/speed-insights/react"; const CharacterModel = lazy(() => import("./components/Character")); const MainContainer = lazy(() => import("./components/MainContainer")); @@ -22,9 +23,12 @@ const App = () => { if (pathname === "/projects") { return ( - - - + <> + + + + + ); } @@ -39,6 +43,7 @@ const App = () => { + ); }; diff --git a/tsconfig.app.tsbuildinfo b/tsconfig.app.tsbuildinfo index 702242f..b71e270 100644 --- a/tsconfig.app.tsbuildinfo +++ b/tsconfig.app.tsbuildinfo @@ -1 +1 @@ -{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/about.tsx","./src/components/career.tsx","./src/components/contact.tsx","./src/components/cursor.tsx","./src/components/hoverlinks.tsx","./src/components/landing.tsx","./src/components/loading.tsx","./src/components/maincontainer.tsx","./src/components/navbar.tsx","./src/components/projectspage.tsx","./src/components/socialicons.tsx","./src/components/techstack.tsx","./src/components/whatido.tsx","./src/components/work.tsx","./src/components/workimage.tsx","./src/components/character/scene.tsx","./src/components/character/exports.ts","./src/components/character/index.tsx","./src/components/character/utils/animationutils.ts","./src/components/character/utils/character.ts","./src/components/character/utils/decrypt.ts","./src/components/character/utils/lighting.ts","./src/components/character/utils/mouseutils.ts","./src/components/character/utils/resizeutils.ts","./src/components/utils/gsapscroll.ts","./src/components/utils/initialfx.ts","./src/components/utils/splittext.ts","./src/context/loadingprovider.tsx","./src/data/bonedata.ts","./src/types/gsap-trial.d.ts"],"version":"5.9.3"} \ No newline at end of file +{"root":["./src/App.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/About.tsx","./src/components/Career.tsx","./src/components/Contact.tsx","./src/components/Cursor.tsx","./src/components/HoverLinks.tsx","./src/components/Landing.tsx","./src/components/Loading.tsx","./src/components/MainContainer.tsx","./src/components/Navbar.tsx","./src/components/ProjectsPage.tsx","./src/components/SocialIcons.tsx","./src/components/TechStack.tsx","./src/components/WhatIDo.tsx","./src/components/Work.tsx","./src/components/WorkImage.tsx","./src/components/Character/Scene.tsx","./src/components/Character/exports.ts","./src/components/Character/index.tsx","./src/components/Character/utils/animationUtils.ts","./src/components/Character/utils/character.ts","./src/components/Character/utils/decrypt.ts","./src/components/Character/utils/lighting.ts","./src/components/Character/utils/mouseUtils.ts","./src/components/Character/utils/resizeUtils.ts","./src/components/utils/GsapScroll.ts","./src/components/utils/initialFX.ts","./src/components/utils/splitText.ts","./src/context/LoadingProvider.tsx","./src/data/boneData.ts","./src/types/gsap-trial.d.ts"],"version":"5.9.3"} \ No newline at end of file