UNPKG

@scayle/storefront-nuxt

Version:

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

22 lines (21 loc) 793 B
declare module 'h3' { interface H3EventContext { $fetchWithContext: typeof globalThis.$fetch; } } /** * Nitro plugin to provide an internal fetch function on the event. * * Nitro includes an `event.$fetch` function for internal fetch requests to allow sharing the headers and * context across requests. However, as of 2.11.7, the context is no longer shared, just the headers. As our * bootstrapping depends on this behavior, we create a custom function with the pre-2.11.7 behavior. This enables * compatibility with 2.11.7 as well as earlier versions. * * @see https://nitro.build/guide/plugins * * @param nitroApp The nitro app instance. * * @returns Nitro plugin function */ declare const _default: import("nitropack").NitroAppPlugin; export default _default;