Skip to content

Commit

Permalink
chore: vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
jpudysz committed Oct 11, 2023
1 parent bde882a commit 655eed0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 25 deletions.
7 changes: 0 additions & 7 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'
import sitemap from '@astrojs/sitemap'
import vercel from '@astrojs/vercel/serverless'

// https://astro.build/config
export default defineConfig({
output: 'server',
adapter: vercel({
webAnalytics: {
enabled: true,
},
}),
integrations: [starlight({
title: 'Unistyles',
description: "React Native StyleSheet 2.0",
Expand Down
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"dependencies": {
"@astrojs/sitemap": "3.0.1",
"@astrojs/starlight": "0.11.0",
"@vercel/analytics": "1.1.0",
"astro": "3.2.3",
"astro-seo": "0.8.0",
"sharp": "0.32.5"
Expand Down
4 changes: 4 additions & 0 deletions docs/src/components/Seo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,9 @@ const openGraph = {
]
}}
/>
<script>
window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
</script>
<script defer src="/_vercel/insights/script.js"></script>
</head>
<slot/>
17 changes: 0 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4987,15 +4987,6 @@ __metadata:
languageName: node
linkType: hard

"@vercel/analytics@npm:1.1.0":
version: 1.1.0
resolution: "@vercel/analytics@npm:1.1.0"
dependencies:
server-only: ^0.0.1
checksum: 24543bb6100a4f041588ee62a5732c1cec651adb493e0331b6f18316cac45ccf00c38c4260fca09372d5991cb0eb12217cfabeb9a07921bf3483b2ff8290c497
languageName: node
linkType: hard

"@webassemblyjs/ast@npm:1.11.6, @webassemblyjs/ast@npm:^1.11.5":
version: 1.11.6
resolution: "@webassemblyjs/ast@npm:1.11.6"
Expand Down Expand Up @@ -17739,7 +17730,6 @@ __metadata:
dependencies:
"@astrojs/sitemap": 3.0.1
"@astrojs/starlight": 0.11.0
"@vercel/analytics": 1.1.0
astro: 3.2.3
astro-seo: 0.8.0
sharp: 0.32.5
Expand Down Expand Up @@ -19068,13 +19058,6 @@ __metadata:
languageName: node
linkType: hard

"server-only@npm:^0.0.1":
version: 0.0.1
resolution: "server-only@npm:0.0.1"
checksum: c432348956641ea3f460af8dc3765f3a1bdbcf7a1e0205b0756d868e6e6fe8934cdee6bff68401a1dd49ba4a831c75916517a877446d54b334f7de36fa273e53
languageName: node
linkType: hard

"set-blocking@npm:^2.0.0":
version: 2.0.0
resolution: "set-blocking@npm:2.0.0"
Expand Down

0 comments on commit 655eed0

Please sign in to comment.