TODOROKI MOTION ブログは以下に移動しました。
3秒後に新しいページへ移動します。
自動的に移動しない場合は、お手数ですが以下をクリックしてください。
The TODOROKI MOTION blog has moved to a new location.
he page will redirect in 3 seconds.
If it doesn't, please click the link below.
pnpm i @vercel/analytics
以下のように astro.config.js の vercel() に、 “webAnanlytics” 項目を追加する。
https://vercel.com/docs/analytics/quickstart#enable-analytics-in-your-astro.config.mjs-file
import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/serverless';
export default defineConfig({
output: 'server',
adapter: vercel({
webAnalytics: {
enabled: true,
},
}),
});
この説明では、output が “server” だが、“static” の場合も問題なく動作する。
vercel --prod
以上。