Files
klz-cables.com/.pnpm-store/v10/files/88/5f4f78869d7ccfd97563e3ef3701ec3d030cb687e9c4ae4c6ab71fa30647e7a03ce1ed3deb790a9066078bea7e96c88a4eba36d3e05b5db680e601b2144c64
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

39 lines
1.4 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const getFinalConfigObject = require('./getFinalConfigObject.js');
/**
* Wraps a user's Next.js config and applies Sentry build-time behavior (instrumentation + sourcemap upload).
*
* Supports both object and function Next.js configs.
*
* @param nextConfig - The user's exported Next.js config
* @param sentryBuildOptions - Options to configure Sentry's build-time behavior
* @returns The wrapped Next.js config (same shape as the input)
*/
function withSentryConfig(nextConfig, sentryBuildOptions = {}) {
const castNextConfig = (nextConfig ) || {};
if (typeof castNextConfig === 'function') {
return function ( ...webpackConfigFunctionArgs) {
const maybePromiseNextConfig = castNextConfig.apply(
this,
webpackConfigFunctionArgs,
);
if (core.isThenable(maybePromiseNextConfig)) {
return maybePromiseNextConfig.then(promiseResultNextConfig => {
return getFinalConfigObject.getFinalConfigObject(promiseResultNextConfig, sentryBuildOptions);
});
}
return getFinalConfigObject.getFinalConfigObject(maybePromiseNextConfig, sentryBuildOptions);
} ;
} else {
return getFinalConfigObject.getFinalConfigObject(castNextConfig, sentryBuildOptions) ;
}
}
exports.withSentryConfig = withSentryConfig;
//# sourceMappingURL=index.js.map