summaryrefslogtreecommitdiff
path: root/packages/integrations/vercel/src/serverless/adapter.ts
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2024-09-19 21:13:44 +0800
committerGravatar GitHub <noreply@github.com> 2024-09-19 21:13:44 +0800
commit997fd33c291cec374f2bc969c0919b422e5dcbd3 (patch)
treeb8f03aa661515e5eb8f9ab2132381ba56649ae8a /packages/integrations/vercel/src/serverless/adapter.ts
parent7a4d252a17584afa08db199b692fd29cf38d8b55 (diff)
downloadastro-997fd33c291cec374f2bc969c0919b422e5dcbd3.tar.gz
astro-997fd33c291cec374f2bc969c0919b422e5dcbd3.tar.zst
astro-997fd33c291cec374f2bc969c0919b422e5dcbd3.zip
Remove vercel speedInsights option (#384)
Diffstat (limited to 'packages/integrations/vercel/src/serverless/adapter.ts')
-rw-r--r--packages/integrations/vercel/src/serverless/adapter.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/packages/integrations/vercel/src/serverless/adapter.ts b/packages/integrations/vercel/src/serverless/adapter.ts
index d52adf2a8..f7b3e6ebc 100644
--- a/packages/integrations/vercel/src/serverless/adapter.ts
+++ b/packages/integrations/vercel/src/serverless/adapter.ts
@@ -20,10 +20,6 @@ import {
import { copyDependenciesToFunction } from '../lib/nft.js';
import { escapeRegex, getRedirects } from '../lib/redirects.js';
import {
- type VercelSpeedInsightsConfig,
- getSpeedInsightsViteConfig,
-} from '../lib/speed-insights.js';
-import {
type VercelWebAnalyticsConfig,
getInjectableWebAnalyticsContent,
} from '../lib/web-analytics.js';
@@ -101,15 +97,6 @@ export interface VercelServerlessConfig {
/** Configuration for [Vercel Web Analytics](https://vercel.com/docs/concepts/analytics). */
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;
-
/** Force files to be bundled with your function. This is helpful when you notice missing files. */
includeFiles?: string[];
@@ -168,7 +155,6 @@ interface VercelISRConfig {
export default function vercelServerless({
webAnalytics,
- speedInsights,
includeFiles: _includeFiles = [],
excludeFiles: _excludeFiles = [],
imageService,
@@ -222,9 +208,6 @@ export default function vercelServerless({
})
);
}
- if (command === 'build' && speedInsights?.enabled) {
- injectScript('page', 'import "@astrojs/vercel/speed-insights"');
- }
const vercelConfigPath = new URL('vercel.json', config.root);
if (existsSync(vercelConfigPath)) {
@@ -255,7 +238,6 @@ export default function vercelServerless({
redirects: false,
},
vite: {
- ...getSpeedInsightsViteConfig(speedInsights?.enabled),
ssr: {
external: ['@vercel/nft'],
},