Files
klz-cables.com/.pnpm-store/v10/files/84/f4b6e23a2a91840439e1d61ed21aa14c04cf5e50ba2c4a649c0377a7487d0226119330a900523c69389a79ddbc6b2ab3215bf937810ab24f48b2038d06feac
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

1 line
1.6 KiB
Plaintext

{"version":3,"file":"wrapGetStaticPropsWithSentry.js","sources":["../../../../src/common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.ts"],"sourcesContent":["import type { GetStaticProps } from 'next';\nimport { isBuild } from '../utils/isBuild';\nimport { callDataFetcherTraced, withErrorInstrumentation } from '../utils/wrapperUtils';\n\ntype Props = { [key: string]: unknown };\n\n/**\n * Create a wrapped version of the user's exported `getStaticProps` function\n *\n * @param origGetStaticProps The user's `getStaticProps` function\n * @param parameterizedRoute The page's parameterized route\n * @returns A wrapped version of the function\n */\nexport function wrapGetStaticPropsWithSentry(\n origGetStaticPropsa: GetStaticProps<Props>,\n _parameterizedRoute: string,\n): GetStaticProps<Props> {\n return new Proxy(origGetStaticPropsa, {\n apply: async (wrappingTarget, thisArg, args: Parameters<GetStaticProps<Props>>) => {\n if (isBuild()) {\n return wrappingTarget.apply(thisArg, args);\n }\n\n const errorWrappedGetStaticProps = withErrorInstrumentation(wrappingTarget);\n return callDataFetcherTraced(errorWrappedGetStaticProps, args);\n },\n });\n}\n"],"names":[],"mappings":";;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,4BAA4B;AAC5C,EAAE,mBAAmB;AACrB,EAAE,mBAAmB;AACrB,EAAyB;AACzB,EAAE,OAAO,IAAI,KAAK,CAAC,mBAAmB,EAAE;AACxC,IAAI,KAAK,EAAE,OAAO,cAAc,EAAE,OAAO,EAAE,IAAI,KAAwC;AACvF,MAAM,IAAI,OAAO,EAAE,EAAE;AACrB,QAAQ,OAAO,cAAc,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC;AAClD,MAAM;;AAEN,MAAM,MAAM,0BAAA,GAA6B,wBAAwB,CAAC,cAAc,CAAC;AACjF,MAAM,OAAO,qBAAqB,CAAC,0BAA0B,EAAE,IAAI,CAAC;AACpE,IAAI,CAAC;AACL,GAAG,CAAC;AACJ;;;;"}