diff --git a/package-lock.json b/package-lock.json index c0f0cf11..1e756572 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "that-us", - "version": "3.11.12", + "version": "3.11.20", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "that-us", - "version": "3.11.12", + "version": "3.11.20", "license": "GPL-3.0", "dependencies": { "@sentry/sveltekit": "^7.58.1" @@ -26,6 +26,7 @@ "@tailwindcss/aspect-ratio": "^0.4.2", "@tailwindcss/forms": "^0.5.3", "@tailwindcss/typography": "^0.5.9", + "@vercel/analytics": "^1.0.2", "@xstate/inspect": "^0.7.1", "@xstate/svelte": "^2.0.1", "all-contributors-cli": "^6.26.0", @@ -2123,6 +2124,12 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@vercel/analytics": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.0.2.tgz", + "integrity": "sha512-BZFxVrv24VbNNl5xMxqUojQIegEeXMI6rX3rg1uVLYUEXsuKNBSAEQf4BWEcjQDp/8aYJOj6m8V4PUA3x/cxgg==", + "dev": true + }, "node_modules/@vercel/nft": { "version": "0.22.6", "resolved": "https://registry.npmjs.org/@vercel/nft/-/nft-0.22.6.tgz", @@ -12189,6 +12196,12 @@ "eslint-visitor-keys": "^3.3.0" } }, + "@vercel/analytics": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.0.2.tgz", + "integrity": "sha512-BZFxVrv24VbNNl5xMxqUojQIegEeXMI6rX3rg1uVLYUEXsuKNBSAEQf4BWEcjQDp/8aYJOj6m8V4PUA3x/cxgg==", + "dev": true + }, "@vercel/nft": { "version": "0.22.6", "resolved": "https://registry.npmjs.org/@vercel/nft/-/nft-0.22.6.tgz", diff --git a/package.json b/package.json index c2bde99a..3645a40a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "that-us", - "version": "3.11.20", + "version": "3.11.21", "description": "THAT.us website", "main": "index.js", "type": "module", @@ -38,6 +38,7 @@ "@tailwindcss/aspect-ratio": "^0.4.2", "@tailwindcss/forms": "^0.5.3", "@tailwindcss/typography": "^0.5.9", + "@vercel/analytics": "^1.0.2", "@xstate/inspect": "^0.7.1", "@xstate/svelte": "^2.0.1", "all-contributors-cli": "^6.26.0", diff --git a/src/routes/+layout.js b/src/routes/+layout.js index bdea3e9b..10a56205 100644 --- a/src/routes/+layout.js +++ b/src/routes/+layout.js @@ -7,12 +7,15 @@ import { browser, dev } from '$app/environment'; import { v4 as uuidv4 } from 'uuid'; import { inspect } from '@xstate/inspect'; import * as Sentry from '@sentry/svelte'; +import { inject } from '@vercel/analytics'; import { debug } from '$utils/config.public'; import coreQueryApi from '$dataSources/api.that.tech/core/queries'; const correlationId = uuidv4(); +inject({ mode: dev ? 'development' : 'production' }); + if (!dev) { Sentry.configureScope((scope) => { scope.setTag('correlationId', correlationId);