summaryrefslogtreecommitdiff
path: root/packages/integrations/web-vitals/src
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2024-09-07 01:07:09 +0200
committerGravatar GitHub <noreply@github.com> 2024-09-07 01:07:09 +0200
commit50ca656dbad6dbb3955b83d9f4dcf4795e98823a (patch)
tree928eb296b12e5f62025afd922f99a2aec0b1a1b2 /packages/integrations/web-vitals/src
parent5b4e3abbb152146b71c1af05d33c96211000b2a6 (diff)
downloadastro-50ca656dbad6dbb3955b83d9f4dcf4795e98823a.tar.gz
astro-50ca656dbad6dbb3955b83d9f4dcf4795e98823a.tar.zst
astro-50ca656dbad6dbb3955b83d9f4dcf4795e98823a.zip
Merge output: hybrid and output: static (#11824)
* feat: merge hybrid and static * fix: linting * fix: get a bunch of tests passing * fix: make forceServerOutput optional * fix: more tests passing * fix: http2 test * fix: CCC * fix: get unit tests passing * fix: lint * fix: vercel * fix: build * fix: build * fix: db tests * fix: get all normal tests passing * fix: e2e tests * refactor: cleanup code * fix: more tests * fix: windows * fix: apply feedback * perf: do in parallel * fix: tests * fix: tests, for real * fix: make server islands tests server-rendered * fix: apply feedback * nit: remove unnecessary file * fix: test remove test that abuse prerender logic * fix: ensure image endpoint is there on dev reload
Diffstat (limited to 'packages/integrations/web-vitals/src')
-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.