The Nuxt Statamic module provides a set of hooks that you can use to extend the module's functionality.
nuxt-statamic:errorThis hook is called when an error occurs in the module.
interface NuxtStatamicError extends Partial<NuxtError> {
data?: {
name?: string;
};
};
nuxt-statamic:error:api-requestThis hook is called when an error occurs in the API request.
interface NuxtStatamicApiRequestError extends FetchError { error: Error }
nuxt-statamic:error:api-responseThis hook is called when an error occurs in the API response.
interface NuxtStatamicApiResponseError extends FetchError {}