Skip to content

Commit

Permalink
Add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
JortWillemsen committed Feb 24, 2024
1 parent 69ec6d3 commit a26e3a9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
10 changes: 6 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { defineConfig } from 'astro/config';

import vercel from '@astrojs/vercel/serverless';
import react from "@astrojs/react";

// https://astro.build/config
import mdx from "@astrojs/mdx";

// https://astro.build/config
export default defineConfig({
integrations: [react(), mdx()],
site: "https://new.tungstun.nl",
site: "https://www.tungstun.nl",
output: 'server',
adapter: vercel({
webAnalytics: { enabled: true }
}),
});
39 changes: 39 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 @@ -15,6 +15,7 @@
"@astrojs/react": "^1.2.2",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@vercel/analytics": "^1.2.2",
"astro": "^3.1.0",
"astro-seo": "^0.8.2",
"react-feather": "^2.0.10",
Expand Down

0 comments on commit a26e3a9

Please sign in to comment.