diff options
author | 2024-08-08 05:12:50 -0500 | |
---|---|---|
committer | 2024-08-08 12:12:50 +0200 | |
commit | 72c7ae9901de927ae8d9d5be63cbaef4f976422c (patch) | |
tree | 6e41a6b07ad8830375ba7b0e4d924fd9449dc7ef /packages/integrations/web-vitals/src | |
parent | 85de47cd982fd13c6286bcc0be384a220996ccbd (diff) | |
download | astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.gz astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.zst astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.zip |
update formatter config (#11640)
* update formatter config
* format
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
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, ); }; |