Add migration guide for the deprecated analytics
property
This commit is contained in:
parent
99b07d4602
commit
93beaf9ade
1 changed files with 19 additions and 0 deletions
|
@ -3,5 +3,24 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
Enable Vercel Speed Insights and Vercel Web Analytics individually.
|
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.
|
Allow configuration of Web Analytics with all available configuration options.
|
||||||
Bumps @vercel/analytics package to the latest version.
|
Bumps @vercel/analytics package to the latest version.
|
||||||
|
|
Loading…
Reference in a new issue