Skip to content

Commit

Permalink
chore: config vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
iankressin committed Aug 23, 2024
1 parent f171485 commit c889e25
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
30 changes: 17 additions & 13 deletions research/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import node from '@astrojs/node';
import svelte from '@astrojs/svelte';
import { defineConfig } from 'astro/config'
import tailwind from '@astrojs/tailwind'
import node from '@astrojs/node'
import svelte from '@astrojs/svelte'

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

// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), svelte()],
output: 'server',
darkMode: 'selector',
adapter: vercel(),
devToolbar: {
enabled: false
}
});
integrations: [tailwind(), svelte()],
output: 'server',
darkMode: 'selector',
adapter: vercel(),
devToolbar: {
enabled: false,
},
output: 'server',
adapter: vercel({
webAnalytics: { enabled: true },
}),
})
1 change: 1 addition & 0 deletions research/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@astrojs/svelte": "^5.7.0",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/vercel": "^7.8.0",
"@vercel/analytics": "^1.3.1",
"astro": "^4.14.2",
"astro-social-share": "^2.0.2",
"nanostores": "^0.11.2",
Expand Down
3 changes: 3 additions & 0 deletions research/pnpm-lock.yaml

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

0 comments on commit c889e25

Please sign in to comment.