diff --git a/astro.config.mjs b/astro.config.mjs index 25ae041..b96cf01 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -7,10 +7,8 @@ import vercel from '@astrojs/vercel/serverless' export default defineConfig({ output: 'server', adapter: vercel({ - imageService: process.env.VERCEL != null, - imagesConfig: { - domains: ['image.tmdb.org'], - sizes: [45, 300, 720, 780, 1280], + webAnalytics: { + enabled: true, }, }), integrations: [tailwind(), preact()], diff --git a/package.json b/package.json index a989008..a33ea96 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "tmdb-ts": "1.8.0" }, "devDependencies": { + "@vercel/analytics": "1.3.1", "eslint": "8.57.0", "eslint-config-prettier": "9.1.0", "eslint-config-standard-with-typescript": "43.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fda62c2..1d3fd17 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,6 +43,9 @@ dependencies: version: 1.8.0 devDependencies: + '@vercel/analytics': + specifier: 1.3.1 + version: 1.3.1 eslint: specifier: 8.57.0 version: 8.57.0 @@ -1873,7 +1876,6 @@ packages: optional: true dependencies: server-only: 0.0.1 - dev: false /@vercel/build-utils@8.2.1: resolution: {integrity: sha512-hZiSnzgb13JlWh4spHq5g6RQ76xMNFBFQLWmW7xx+f0yMsWTx/h6uBJm8AbW7AhAtsqeJ8Q6KvCFnxwXKYxLDw==} @@ -6475,7 +6477,6 @@ packages: /server-only@0.0.1: resolution: {integrity: sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==} - dev: false /set-blocking@2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}