Skip to content

Commit

Permalink
chore(vercel): deprecate speedInsights (#9598)
Browse files Browse the repository at this point in the history
* deprecate speedInsights config

* add changeset
  • Loading branch information
lilnasy authored Jan 4, 2024
1 parent 2e4d110 commit bd8fa7a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-garlics-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/vercel": patch
---

Marks the `speedInsights` configuration as deprecated. Vercel has migrated features of the Speed Insights API into a framework-agnostic library with `@vercel/speed-insights`. See [Vercel Speed Insights Quickstart](https://vercel.com/docs/speed-insights/quickstart) for instructions on how to use the library instead.
8 changes: 7 additions & 1 deletion packages/integrations/vercel/src/serverless/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ export interface VercelServerlessConfig {
/** Configuration for [Vercel Web Analytics](https://vercel.com/docs/concepts/analytics). */
webAnalytics?: VercelWebAnalyticsConfig;

/** Configuration for [Vercel Speed Insights](https://vercel.com/docs/concepts/speed-insights). */
/**
* @deprecated This option lets you configure the legacy speed insights API which is now deprecated by Vercel.
*
* See [Vercel Speed Insights Quickstart](https://vercel.com/docs/speed-insights/quickstart) for instructions on how to use the library instead.
*
* https://vercel.com/docs/speed-insights/quickstart
*/
speedInsights?: VercelSpeedInsightsConfig;

/** Force files to be bundled with your function. This is helpful when you notice missing files. */
Expand Down
7 changes: 7 additions & 0 deletions packages/integrations/vercel/src/static/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ function getAdapter(): AstroAdapter {

export interface VercelStaticConfig {
webAnalytics?: VercelWebAnalyticsConfig;
/**
* @deprecated This option lets you configure the legacy speed insights API which is now deprecated by Vercel.
*
* See [Vercel Speed Insights Quickstart](https://vercel.com/docs/speed-insights/quickstart) for instructions on how to use the library instead.
*
* https://vercel.com/docs/speed-insights/quickstart
*/
speedInsights?: VercelSpeedInsightsConfig;
imageService?: boolean;
imagesConfig?: VercelImageConfig;
Expand Down

0 comments on commit bd8fa7a

Please sign in to comment.