Skip to content

@vue-storefront/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Dec 13:31
· 40 commits to main since this release
54d0187

Minor Changes

[ADDED] defaultErrorHandler is now exported from the package. Example usage:

import type { Integration } from "@vue-storefront/middleware";
import type { MiddlewareConfig } from "@vsf-enterprise/sapcc-api";
import { defaultErrorHandler } from "@vue-storefront/middleware";

export const config = {
  integrations: {
    commerce: {
      errorHandler: (error, req, res) => {
        // Perform custom actions before delegating to the default error handler
        defaultErrorHandler(error, req, res);
      },
    } satisfies Integration<MiddlewareConfig>,
  },
};