From 93beaf9ade2b29ad1e045e33fe125de81dcc4396 Mon Sep 17 00:00:00 2001 From: Chris <7249920+chriswdmr@users.noreply.github.com> Date: Tue, 29 Aug 2023 17:30:40 +0200 Subject: [PATCH] Add migration guide for the deprecated `analytics` property --- .changeset/sixty-teachers-tap.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.changeset/sixty-teachers-tap.md b/.changeset/sixty-teachers-tap.md index d3223f93e..94324ac0e 100644 --- a/.changeset/sixty-teachers-tap.md +++ b/.changeset/sixty-teachers-tap.md @@ -3,5 +3,24 @@ --- Enable Vercel Speed Insights and Vercel Web Analytics individually. +Deprecates the `analytics` property in `astro.config.mjs` in favor of `speedInsights` and `webAnalytics`. + +If you're using the `analytics` property, you'll need to update your config to use the new properties: + +```diff +// astro.config.mjs +export default defineConfig({ + adapter: vercel({ +- analytics: true, ++ webAnalytics: { ++ enabled: true ++ }, ++ speedInsights: { ++ enabled: true ++ } + }) +}); +``` + Allow configuration of Web Analytics with all available configuration options. Bumps @vercel/analytics package to the latest version.