From c889e25cb417aa676a1f5bdd274f082d5fc732a1 Mon Sep 17 00:00:00 2001 From: "Ian K. Guimaraes" Date: Fri, 23 Aug 2024 18:57:24 -0300 Subject: [PATCH] chore: config vercel analytics --- research/astro.config.mjs | 30 +++++++++++++++++------------- research/package.json | 1 + research/pnpm-lock.yaml | 3 +++ 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/research/astro.config.mjs b/research/astro.config.mjs index a528a23..5de9132 100644 --- a/research/astro.config.mjs +++ b/research/astro.config.mjs @@ -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 - } -}); \ No newline at end of file + integrations: [tailwind(), svelte()], + output: 'server', + darkMode: 'selector', + adapter: vercel(), + devToolbar: { + enabled: false, + }, + output: 'server', + adapter: vercel({ + webAnalytics: { enabled: true }, + }), +}) diff --git a/research/package.json b/research/package.json index 94cdd18..5184331 100644 --- a/research/package.json +++ b/research/package.json @@ -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", diff --git a/research/pnpm-lock.yaml b/research/pnpm-lock.yaml index 4a515ff..48741fe 100644 --- a/research/pnpm-lock.yaml +++ b/research/pnpm-lock.yaml @@ -23,6 +23,9 @@ importers: '@astrojs/vercel': specifier: ^7.8.0 version: 7.8.0(astro@4.14.2(rollup@4.21.0)(sass@1.77.8)(typescript@5.5.4)) + '@vercel/analytics': + specifier: ^1.3.1 + version: 1.3.1 astro: specifier: ^4.14.2 version: 4.14.2(rollup@4.21.0)(sass@1.77.8)(typescript@5.5.4)