diff options
Diffstat (limited to 'packages/integrations/web-vitals/src')
-rw-r--r-- | packages/integrations/web-vitals/src/index.ts | 4 | ||||
-rw-r--r-- | packages/integrations/web-vitals/src/middleware.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/integrations/web-vitals/src/index.ts b/packages/integrations/web-vitals/src/index.ts index f5c1c72a2..02293ac6f 100644 --- a/packages/integrations/web-vitals/src/index.ts +++ b/packages/integrations/web-vitals/src/index.ts @@ -15,7 +15,7 @@ export default function webVitals({ deprecated }: { deprecated?: boolean } = {}) if (!config.integrations.find(({ name }) => name === 'astro:db')) { throw new AstroError( 'Astro DB integration not found.', - 'Run `npx astro add db` to install `@astrojs/db` and add it to your Astro config.' + 'Run `npx astro add db` to install `@astrojs/db` and add it to your Astro config.', ); } @@ -23,7 +23,7 @@ export default function webVitals({ deprecated }: { deprecated?: boolean } = {}) 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/' + 'Please add an SSR adapter: https://docs.astro.build/en/guides/server-side-rendering/', ); } diff --git a/packages/integrations/web-vitals/src/middleware.ts b/packages/integrations/web-vitals/src/middleware.ts index b4994c902..1935b78d7 100644 --- a/packages/integrations/web-vitals/src/middleware.ts +++ b/packages/integrations/web-vitals/src/middleware.ts @@ -16,7 +16,7 @@ export const onRequest: MiddlewareHandler = async ({ params, url }, next) => { ?.pipeThrough(new TextDecoderStream()) .pipeThrough(HeadInjectionTransformStream(webVitalsMetaTag)) .pipeThrough(new TextEncoderStream()), - response + response, ); }; |