heartbeat-monitor/node_modules/next/dist/server/node-environment-baseline.js
Matt Bruce bed1169443 Initial commit: Heartbeat Monitor dashboard
- Full-featured monitoring dashboard for local web apps
- Real-time status tracking with uptime percentages
- Visual sparklines for status history
- Add/Edit/Delete apps dynamically
- Categories and color coding
- Auto-refresh every 30 seconds
- API endpoints for apps and status management
2026-02-18 11:16:01 -06:00

25 lines
890 B
JavaScript

// This file should be imported before any others. It sets up the environment
// for later imports to work properly.
// expose AsyncLocalStorage on global for react usage if it isn't already provided by the environment
"use strict";
if (typeof globalThis.AsyncLocalStorage !== 'function') {
const { AsyncLocalStorage } = require('async_hooks');
globalThis.AsyncLocalStorage = AsyncLocalStorage;
}
if (typeof globalThis.WebSocket !== 'function') {
Object.defineProperty(globalThis, 'WebSocket', {
configurable: true,
get () {
return require('next/dist/compiled/ws').WebSocket;
},
set (value) {
Object.defineProperty(globalThis, 'WebSocket', {
configurable: true,
writable: true,
value
});
}
});
}
//# sourceMappingURL=node-environment-baseline.js.map