We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 531aae8 commit 7fe07e5Copy full SHA for 7fe07e5
server/index.js
@@ -1,5 +1,8 @@
1
require('dotenv').config(); // Load environment variables from .env file
2
3
+// Import the state manager FIRST
4
+const stateManager = require('./state');
5
+
6
// --- BEGIN Configuration Loading using configLoader ---
7
const { loadConfiguration, ConfigurationError } = require('./configLoader');
8
@@ -62,9 +65,6 @@ let pbsApiClients = {};
62
65
const { fetchDiscoveryData, fetchMetricsData } = require('./dataFetcher');
63
66
// --- END Data Fetching ---
64
67
-// Import the state manager
-const stateManager = require('./state');
-
68
// Server configuration
69
const DEBUG_METRICS = false; // Set to true to show detailed metrics logs
70
const PORT = 7655; // Using a different port from the main server
0 commit comments