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>
21 lines
512 B
Text
21 lines
512 B
Text
let cachedDebuggerEnabled;
|
|
|
|
/**
|
|
* Was the debugger enabled when this function was first called?
|
|
*/
|
|
async function isDebuggerEnabled() {
|
|
if (cachedDebuggerEnabled === undefined) {
|
|
try {
|
|
// Node can be built without inspector support
|
|
const inspector = await import('node:inspector');
|
|
cachedDebuggerEnabled = !!inspector.url();
|
|
} catch {
|
|
cachedDebuggerEnabled = false;
|
|
}
|
|
}
|
|
|
|
return cachedDebuggerEnabled;
|
|
}
|
|
|
|
export { isDebuggerEnabled };
|
|
//# sourceMappingURL=debug.js.map
|