From 7ffb76e3b0b84bf11365e4467c20c7f17549d021 Mon Sep 17 00:00:00 2001 From: Arkadii Shwartsman Date: Sun, 28 Jan 2024 16:11:19 +0100 Subject: [PATCH] DYGYRA-8: vercel perfomance checker --- package-lock.json | 35 +++++++++++++++++++++++++++++++++++ package.json | 1 + src/index.tsx | 2 ++ 3 files changed, 38 insertions(+) diff --git a/package-lock.json b/package-lock.json index edb3958..bee631a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,6 +22,7 @@ "@types/react": "18.2.45", "@types/react-dom": "18.2.18", "@vercel/analytics": "^1.1.2", + "@vercel/speed-insights": "^1.0.8", "classnames": "2.3.2", "craco-alias": "^3.0.1", "fingerpose": "git@github.com:andypotato/fingerpose.git", @@ -5539,6 +5540,40 @@ "server-only": "^0.0.1" } }, + "node_modules/@vercel/speed-insights": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-1.0.8.tgz", + "integrity": "sha512-x1V9MHUMGkaNafmgY0qRbmbr+jfeU+Cvo5KgreeEGo63SFuBYRg9RS52GUJ9p82nEL6NBzc9HNru6fkcvufYcQ==", + "hasInstallScript": true, + "peerDependencies": { + "@sveltejs/kit": "^1 || ^2", + "next": ">= 13", + "react": "^18 || ^19", + "svelte": "^4", + "vue": "^3", + "vue-router": "^4" + }, + "peerDependenciesMeta": { + "@sveltejs/kit": { + "optional": true + }, + "next": { + "optional": true + }, + "react": { + "optional": true + }, + "svelte": { + "optional": true + }, + "vue": { + "optional": true + }, + "vue-router": { + "optional": true + } + } + }, "node_modules/@webassemblyjs/ast": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", diff --git a/package.json b/package.json index de32dbd..0c26499 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@types/react": "18.2.45", "@types/react-dom": "18.2.18", "@vercel/analytics": "^1.1.2", + "@vercel/speed-insights": "^1.0.8", "classnames": "2.3.2", "craco-alias": "^3.0.1", "fingerpose": "git@github.com:andypotato/fingerpose.git", diff --git a/src/index.tsx b/src/index.tsx index e3029bf..955b249 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,5 +1,6 @@ import { router } from "@base/router"; import { Analytics } from "@vercel/analytics/react"; +import { SpeedInsights } from "@vercel/speed-insights/react"; import ReactDOM from "react-dom/client"; import { RouterProvider } from "react-router-dom"; @@ -16,6 +17,7 @@ root.render( + , );