From 031e11b88267635746c5785769c32922d3e4ceb8 Mon Sep 17 00:00:00 2001 From: Stijn Van Hulle Date: Sat, 16 Mar 2024 00:09:49 +0100 Subject: [PATCH] chore: speed insights --- docs/.vitepress/theme/index.ts | 2 ++ docs/package.json | 1 + pnpm-lock.yaml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index d4d485475..ecf50cd2c 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -1,6 +1,7 @@ // https://vitepress.dev/guide/custom-theme import { inject } from '@vercel/analytics' import DefaultTheme from 'vitepress/theme' +import { injectSpeedInsights } from '@vercel/speed-insights' import { h } from 'vue' import HomePage from './HomePage.vue' @@ -22,6 +23,7 @@ export default { }) }, enhanceApp(ctx: any) { + injectSpeedInsights() DefaultTheme.enhanceApp(ctx) }, } diff --git a/docs/package.json b/docs/package.json index 5bf672dee..3f5414ecb 100644 --- a/docs/package.json +++ b/docs/package.json @@ -20,6 +20,7 @@ }, "dependencies": { "@vercel/analytics": "^1.2.2", + "@vercel/speed-insights": "^1.0.10", "sitemap": "^7.1.1", "vitepress": "^1.0.0-rc.45", "vue": "^3.4.21" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dfdf3e54c..0423b6218 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -70,6 +70,9 @@ importers: '@vercel/analytics': specifier: ^1.2.2 version: 1.2.2 + '@vercel/speed-insights': + specifier: ^1.0.10 + version: 1.0.10(vue@3.4.21) sitemap: specifier: ^7.1.1 version: 7.1.1 @@ -4579,6 +4582,33 @@ packages: server-only: 0.0.1 dev: false + /@vercel/speed-insights@1.0.10(vue@3.4.21): + resolution: {integrity: sha512-4uzdKB0RW6Ff2FkzshzjZ+RlJfLPxgm/00i0XXgxfMPhwnnsk92YgtqsxT9OcPLdJUyVU1DqFlSWWjIQMPkh0g==} + requiresBuild: 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 + dependencies: + vue: 3.4.21(typescript@5.4.2) + dev: false + /@vitejs/plugin-react@4.2.1(vite@4.5.2): resolution: {integrity: sha512-oojO9IDc4nCUUi8qIR11KoQm0XFFLIwsRBwHRR4d/88IWghn1y6ckz/bJ8GHDCsYEJee8mDzqtJxh15/cisJNQ==} engines: {node: ^14.18.0 || >=16.0.0}