feat: add vercel injectSpeedInsights
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Generated
+8
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user