summaryrefslogtreecommitdiff
path: root/packages/integrations/web-vitals/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/web-vitals/src/index.ts')
-rw-r--r--packages/integrations/web-vitals/src/index.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/packages/integrations/web-vitals/src/index.ts b/packages/integrations/web-vitals/src/index.ts
index 02293ac6f..c74ab3261 100644
--- a/packages/integrations/web-vitals/src/index.ts
+++ b/packages/integrations/web-vitals/src/index.ts
@@ -19,14 +19,6 @@ export default function webVitals({ deprecated }: { deprecated?: boolean } = {})
);
}
- if (config.output !== 'hybrid' && config.output !== 'server') {
- throw new AstroError(
- 'No SSR adapter found.',
- '`@astrojs/web-vitals` requires your site to be built with `hybrid` or `server` output.\n' +
- 'Please add an SSR adapter: https://docs.astro.build/en/guides/server-side-rendering/',
- );
- }
-
// Middleware that adds a `<meta>` tag to each page.
addMiddleware({ entrypoint: '@astrojs/web-vitals/middleware', order: 'post' });
// Endpoint that collects metrics and inserts them in Astro DB.