Skip to content

Commit

Permalink
Add Vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwhitmore committed Jun 17, 2024
1 parent 0339e9d commit e0b7380
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
8 changes: 6 additions & 2 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ import { expressiveCodeOptions } from "./src/site.config";
import { remarkReadingTime } from "./src/utils/remark-reading-time";

export default defineConfig({
image: {
adapter: vercel({
webAnalytics: { enabled: true }
}),
image: {
domains: ["webmention.io"],
},
integrations: [
integrations: [
expressiveCode(expressiveCodeOptions),
icon(),
tailwind({
Expand All @@ -42,6 +45,7 @@ export default defineConfig({
},
},
},
output: 'server',
prefetch: true,
site: "https://whitmore.io/",
vite: {
Expand Down
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@astrojs/rss": "4.0.5",
"@astrojs/sitemap": "3.1.2",
"@astrojs/tailwind": "5.1.0",
"@vercel/analytics": "^1.3.1",
"astro": "4.5.16",
"astro-expressive-code": "^0.34.1",
"astro-icon": "^1.1.0",
Expand Down

0 comments on commit e0b7380

Please sign in to comment.