Vercel Analytics + Speed Insights

main
Elias Almqvist 8 months ago
parent 502149dc41
commit 5afa51f163
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 2
      package.json
  2. 54
      pnpm-lock.yaml
  3. BIN
      src/app/favicon.ico
  4. 14
      src/app/favicon.svg
  5. 5
      src/app/layout.tsx

@ -22,6 +22,8 @@
"@tailwindcss/typography": "^0.5.12", "@tailwindcss/typography": "^0.5.12",
"@types/mdx": "^2.0.12", "@types/mdx": "^2.0.12",
"@types/three": "^0.162.0", "@types/three": "^0.162.0",
"@vercel/analytics": "^1.2.2",
"@vercel/speed-insights": "^1.0.10",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
"clsx": "^2.1.0", "clsx": "^2.1.0",
"cmdk": "^1.0.0", "cmdk": "^1.0.0",

@ -38,6 +38,12 @@ dependencies:
'@types/three': '@types/three':
specifier: ^0.162.0 specifier: ^0.162.0
version: 0.162.0 version: 0.162.0
'@vercel/analytics':
specifier: ^1.2.2
version: 1.2.2(next@14.1.4)(react@18.2.0)
'@vercel/speed-insights':
specifier: ^1.0.10
version: 1.0.10(next@14.1.4)(react@18.2.0)
class-variance-authority: class-variance-authority:
specifier: ^0.7.0 specifier: ^0.7.0
version: 0.7.0 version: 0.7.0
@ -977,6 +983,50 @@ packages:
/@ungap/structured-clone@1.2.0: /@ungap/structured-clone@1.2.0:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
/@vercel/analytics@1.2.2(next@14.1.4)(react@18.2.0):
resolution: {integrity: sha512-X0rctVWkQV1e5Y300ehVNqpOfSOufo7ieA5PIdna8yX/U7Vjz0GFsGf4qvAhxV02uQ2CVt7GYcrFfddXXK2Y4A==}
peerDependencies:
next: '>= 13'
react: ^18 || ^19
peerDependenciesMeta:
next:
optional: true
react:
optional: true
dependencies:
next: 14.1.4(react-dom@18.2.0)(react@18.2.0)
react: 18.2.0
server-only: 0.0.1
dev: false
/@vercel/speed-insights@1.0.10(next@14.1.4)(react@18.2.0):
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:
next: 14.1.4(react-dom@18.2.0)(react@18.2.0)
react: 18.2.0
dev: false
/@webassemblyjs/ast@1.12.1: /@webassemblyjs/ast@1.12.1:
resolution: {integrity: sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==} resolution: {integrity: sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==}
dependencies: dependencies:
@ -3997,6 +4047,10 @@ packages:
randombytes: 2.1.0 randombytes: 2.1.0
dev: false dev: false
/server-only@0.0.1:
resolution: {integrity: sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==}
dev: false
/set-function-length@1.2.2: /set-function-length@1.2.2:
resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

@ -0,0 +1,14 @@
<svg viewBox="0 0 134 134" fill="none" xmlns="http://www.w3.org/2000/svg">
<style>
path {
fill: black;
}
@media (prefers-color-scheme: dark) {
path {
fill: white;
}
}
</style>
<path d="M24.5 0.5H0.5L35.5 102.5H59.5L24.5 0.5Z" />
<path d="M71.5 9.5H46.5L70.5 93.5H94.5L106.5 49.5L117.5 93.5H142.5L165.5 9.5H141.5L128.5 59.5L115.5 9.5H96.5L83.5 59.5L71.5 9.5Z" />
</svg>

After

Width:  |  Height:  |  Size: 419 B

@ -13,6 +13,9 @@ import Layout from "@/components/layout";
import fonts from "@/components/fonts"; import fonts from "@/components/fonts";
import { Analytics } from "@vercel/analytics/react";
import { SpeedInsights } from "@vercel/speed-insights/next";
export default function RootLayout({ export default function RootLayout({
children, children,
}: { }: {
@ -34,6 +37,8 @@ export default function RootLayout({
> >
<Layout>{children}</Layout> <Layout>{children}</Layout>
</ThemeProvider> </ThemeProvider>
<SpeedInsights />
<Analytics />
</body> </body>
</html> </html>
); );

Loading…
Cancel
Save