@scayle/storefront-nuxt
Version:
Nuxt integration for the SCAYLE Commerce Engine and Storefront API
21 lines (20 loc) • 839 B
TypeScript
/**
* Nuxt plugin to provide logging functionality for the server-environment (NuxtApp).
*
* This plugin makes logging functions available through the Nuxt app instance.
* It retrieves the log instance from the server context during server-side rendering.
* If `ssrContext` is missing, it logs a warning.
*
* @see https://nuxt.com/docs/guide/directory-structure/plugins#providing-helpers
*
* @returns A helper on the `NuxtApp` containing the `log` and
* `coreLog`instances, or undefined if ssrContext is missing.
*/
declare const _default: import("#app").Plugin<{
log: import("@scayle/storefront-core").Log;
coreLog: import("@scayle/storefront-core").Log;
}> & import("#app").ObjectPlugin<{
log: import("@scayle/storefront-core").Log;
coreLog: import("@scayle/storefront-core").Log;
}>;
export default _default;