feat: add vercel injectSpeedInsights
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
"@tailwindcss/forms": "^0.5.4",
|
"@tailwindcss/forms": "^0.5.4",
|
||||||
"@tinymce/tinymce-svelte": "^1.0.1",
|
"@tinymce/tinymce-svelte": "^1.0.1",
|
||||||
"@types/pluralize": "0.0.30",
|
"@types/pluralize": "0.0.30",
|
||||||
|
"@vercel/speed-insights": "^1.0.1",
|
||||||
"ai": "^2.1.31",
|
"ai": "^2.1.31",
|
||||||
"axios": "^1.5.1",
|
"axios": "^1.5.1",
|
||||||
"body-parser": "^1.20.2",
|
"body-parser": "^1.20.2",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount } from 'svelte';
|
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 { fly } from 'svelte/transition';
|
||||||
import { derived } from 'svelte/store';
|
import { derived } from 'svelte/store';
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
@@ -216,6 +216,8 @@
|
|||||||
|
|
||||||
setupAnalytics();
|
setupAnalytics();
|
||||||
|
|
||||||
|
injectSpeedInsights();
|
||||||
|
|
||||||
handleResize();
|
handleResize();
|
||||||
|
|
||||||
if (!isSupabaseTokenInLocalStorage() && !isPublicRoute($page.url.pathname)) {
|
if (!isSupabaseTokenInLocalStorage() && !isPublicRoute($page.url.pathname)) {
|
||||||
|
|||||||
Generated
+8
@@ -114,6 +114,9 @@ importers:
|
|||||||
'@types/pluralize':
|
'@types/pluralize':
|
||||||
specifier: 0.0.30
|
specifier: 0.0.30
|
||||||
version: 0.0.30
|
version: 0.0.30
|
||||||
|
'@vercel/speed-insights':
|
||||||
|
specifier: ^1.0.1
|
||||||
|
version: 1.0.1
|
||||||
ai:
|
ai:
|
||||||
specifier: ^2.1.31
|
specifier: ^2.1.31
|
||||||
version: 2.1.31(react@18.2.0)(solid-js@1.8.6)(svelte@4.1.2)(vue@3.3.8)
|
version: 2.1.31(react@18.2.0)(solid-js@1.8.6)(svelte@4.1.2)(vue@3.3.8)
|
||||||
@@ -4028,6 +4031,11 @@ packages:
|
|||||||
- supports-color
|
- supports-color
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/@vercel/speed-insights@1.0.1:
|
||||||
|
resolution: {integrity: sha512-cm8KTTsDgS1AbWsgIEZuMoyPUjclzeqJihyLp0tnA21B/x9iTE8hu2S5zM+/DBzihuHxWL1dx9pCWk22ctMFWQ==}
|
||||||
|
requiresBuild: true
|
||||||
|
dev: false
|
||||||
|
|
||||||
/@vercel/style-guide@5.1.0(eslint@8.54.0)(prettier@3.1.0)(typescript@5.3.2):
|
/@vercel/style-guide@5.1.0(eslint@8.54.0)(prettier@3.1.0)(typescript@5.3.2):
|
||||||
resolution: {integrity: sha512-L9lWYePIycm7vIOjDLj+mmMdmmPkW3/brHjgq+nJdvMOrL7Hdk/19w8X583HYSk0vWsq494o5Qkh6x5+uW7ljg==}
|
resolution: {integrity: sha512-L9lWYePIycm7vIOjDLj+mmMdmmPkW3/brHjgq+nJdvMOrL7Hdk/19w8X583HYSk0vWsq494o5Qkh6x5+uW7ljg==}
|
||||||
engines: {node: '>=16'}
|
engines: {node: '>=16'}
|
||||||
|
|||||||
Reference in New Issue
Block a user