Skip to content

lib/webVitals/checkForWebVitalsPlugin

const checkForWebVitals: HookUtility<"astro:config:setup", [{
name: string;
verbose: boolean;
version: string;
}],
| null
| StudioCMSPlugin>;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/checkForWebVitalsPlugin.ts:25

Checks for the presence of the Web Vitals integration and sets up the necessary configurations.

The parameters provided by the Astro configuration setup.

Options for configuring the Web Vitals integration.

The name of the Web Vitals integration.

A flag indicating whether to log verbose messages.

The minimum version of StudioCMS required for the Web Vitals integration.

A StudioCMSPlugin object if the Web Vitals integration is enabled, otherwise null.


const webVitalsName: "@astrojs/web-vitals" = '@astrojs/web-vitals';

Defined in: studiocms/packages/studiocms/src/lib/webVitals/checkForWebVitalsPlugin.ts:10