Files
klz-cables.com/.pnpm-store/v10/files/93/e42bdb1c1459ffd842c45eda9a5a9337f5a120fb7b34c464b63f9fc921d9e7559a93fae5b0c7b3bc277658a233e89c1d9a9d9946f5d70e052314ce298eea33
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

29 lines
936 B
Plaintext

import { isBuild } from '../utils/isBuild.js';
import { callDataFetcherTraced, withErrorInstrumentation } from '../utils/wrapperUtils.js';
/**
* Create a wrapped version of the user's exported `getStaticProps` function
*
* @param origGetStaticProps The user's `getStaticProps` function
* @param parameterizedRoute The page's parameterized route
* @returns A wrapped version of the function
*/
function wrapGetStaticPropsWithSentry(
origGetStaticPropsa,
_parameterizedRoute,
) {
return new Proxy(origGetStaticPropsa, {
apply: async (wrappingTarget, thisArg, args) => {
if (isBuild()) {
return wrappingTarget.apply(thisArg, args);
}
const errorWrappedGetStaticProps = withErrorInstrumentation(wrappingTarget);
return callDataFetcherTraced(errorWrappedGetStaticProps, args);
},
});
}
export { wrapGetStaticPropsWithSentry };
//# sourceMappingURL=wrapGetStaticPropsWithSentry.js.map