Rocky_Mountain_Vending/.pnpm-store/v10/files/3f/10f792dffa1eca233b3f35c0bd5ee509f731e4eb2c5783901749ef525923c24bd145ea7a0dba8884f47b7f4626f6ce64407c2d4f91040e4dd712f69b2aa208
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

32 lines
870 B
Text

import { getMainCarrier, getSentryCarrier } from '../carrier.js';
import { getStackAsyncContextStrategy } from './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 = getMainCarrier();
const sentry = getSentryCarrier(registry);
sentry.acs = strategy;
}
/**
* Get the current async context strategy.
* If none has been setup, the default will be used.
*/
function getAsyncContextStrategy(carrier) {
const sentry = getSentryCarrier(carrier);
if (sentry.acs) {
return sentry.acs;
}
// Otherwise, use the default one (stack)
return getStackAsyncContextStrategy();
}
export { getAsyncContextStrategy, setAsyncContextStrategy };
//# sourceMappingURL=index.js.map