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

31 lines
1.0 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
/**
* Parse the spotlight option with proper precedence:
* - `false` or explicit string from options: use as-is
* - `true`: enable spotlight, but prefer a custom URL from the env var if set
* - `undefined`: defer entirely to the env var (bool or URL)
*/
function getSpotlightConfig(optionsSpotlight) {
if (optionsSpotlight === false) {
return false;
}
if (typeof optionsSpotlight === 'string') {
return optionsSpotlight;
}
// optionsSpotlight is true or undefined
const envBool = core.envToBool(process.env.SENTRY_SPOTLIGHT, { strict: true });
const envUrl = envBool === null && process.env.SENTRY_SPOTLIGHT ? process.env.SENTRY_SPOTLIGHT : undefined;
return optionsSpotlight === true
? (envUrl ?? true) // true: use env URL if present, otherwise true
: (envBool ?? envUrl); // undefined: use env var (bool or URL)
}
exports.getSpotlightConfig = getSpotlightConfig;
//# sourceMappingURL=spotlight.js.map