feat: add vercel injectSpeedInsights

This commit is contained in:
Rotimi Best
2023-12-08 18:47:51 +03:00
parent 19776967fa
commit 798f216cfc
3 changed files with 12 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@
"@tailwindcss/forms": "^0.5.4",
"@tinymce/tinymce-svelte": "^1.0.1",
"@types/pluralize": "0.0.30",
"@vercel/speed-insights": "^1.0.1",
"ai": "^2.1.31",
"axios": "^1.5.1",
"body-parser": "^1.20.2",
+3 -1
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { onMount } from 'svelte';
import { PUBLIC_SUPABASE_PROJECT_REF } from '$env/static/public';
import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit';
import { fly } from 'svelte/transition';
import { derived } from 'svelte/store';
import { goto } from '$app/navigation';
@@ -216,6 +216,8 @@
setupAnalytics();
injectSpeedInsights();
handleResize();
if (!isSupabaseTokenInLocalStorage() && !isPublicRoute($page.url.pathname)) {
+8
View File
@@ -114,6 +114,9 @@ importers:
'@types/pluralize':
specifier: 0.0.30
version: 0.0.30
'@vercel/speed-insights':
specifier: ^1.0.1
version: 1.0.1
ai:
specifier: ^2.1.31
version: 2.1.31([email protected])([email protected])([email protected])([email protected])
@@ -4028,6 +4031,11 @@ packages:
- supports-color
dev: false
/@vercel/[email protected]:
resolution: {integrity: sha512-cm8KTTsDgS1AbWsgIEZuMoyPUjclzeqJihyLp0tnA21B/x9iTE8hu2S5zM+/DBzihuHxWL1dx9pCWk22ctMFWQ==}
requiresBuild: true
dev: false
/@vercel/[email protected]([email protected])([email protected])([email protected]):
resolution: {integrity: sha512-L9lWYePIycm7vIOjDLj+mmMdmmPkW3/brHjgq+nJdvMOrL7Hdk/19w8X583HYSk0vWsq494o5Qkh6x5+uW7ljg==}
engines: {node: '>=16'}