Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,14 @@ export default defineConfig({
],
adapter: vercel({
edgeMiddleware: true,
// Inject the Vercel Web Analytics + Speed Insights trackers. The
// `@vercel/analytics` and `@vercel/speed-insights` packages are
// already installed; the adapter is responsible for adding the
// `<script>` tags. Without these flags both Vercel dashboards stay
// empty (0 visitors / 0 RUM samples) even though the CSP in
// vercel.json allowlists va.vercel-scripts.com and
// vitals.vercel-insights.com.
webAnalytics: { enabled: true },
speedInsights: { enabled: true },
}),
});
Loading