lib/webVitals/checkForWebVitalsPlugin
Esta página aún no está disponible en tu idioma.
Variables
Section titled “Variables”checkForWebVitals
Section titled “checkForWebVitals”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.
Returns
Section titled “Returns”A StudioCMSPlugin object if the Web Vitals integration is enabled, otherwise null.
webVitalsName
Section titled “webVitalsName”const webVitalsName: "@astrojs/web-vitals" = '@astrojs/web-vitals';
Defined in: studiocms/packages/studiocms/src/lib/webVitals/checkForWebVitalsPlugin.ts:10