Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
35 lines
1,005 B
Text
35 lines
1,005 B
Text
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
const carrier = require('../carrier.js');
|
|
const stackStrategy = require('./stackStrategy.js');
|
|
|
|
/**
|
|
* @private Private API with no semver guarantees!
|
|
*
|
|
* Sets the global async context strategy
|
|
*/
|
|
function setAsyncContextStrategy(strategy) {
|
|
// Get main carrier (global for every environment)
|
|
const registry = carrier.getMainCarrier();
|
|
const sentry = carrier.getSentryCarrier(registry);
|
|
sentry.acs = strategy;
|
|
}
|
|
|
|
/**
|
|
* Get the current async context strategy.
|
|
* If none has been setup, the default will be used.
|
|
*/
|
|
function getAsyncContextStrategy(carrier$1) {
|
|
const sentry = carrier.getSentryCarrier(carrier$1);
|
|
|
|
if (sentry.acs) {
|
|
return sentry.acs;
|
|
}
|
|
|
|
// Otherwise, use the default one (stack)
|
|
return stackStrategy.getStackAsyncContextStrategy();
|
|
}
|
|
|
|
exports.getAsyncContextStrategy = getAsyncContextStrategy;
|
|
exports.setAsyncContextStrategy = setAsyncContextStrategy;
|
|
//# sourceMappingURL=index.js.map
|