@linxiraos/pi-stats 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/server.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Dirent } from "node:fs";
2
2
  import * as fs from "node:fs/promises";
3
3
  import * as path from "node:path";
4
- import { isEnoent, logger } from "@linxiraos/pi-utils";
4
+ import { isEnoent, logger, ZETA_STATS_PORT } from "@linxiraos/pi-utils";
5
5
  import { $, type Server } from "bun";
6
6
  import {
7
7
  getCostDashboardStats,
@@ -522,7 +522,7 @@ export interface StartServerOptions {
522
522
  }
523
523
 
524
524
  export async function startServer(
525
- port = 3847,
525
+ port = ZETA_STATS_PORT,
526
526
  hostname = STATS_DASHBOARD_HOSTNAME,
527
527
  options: StartServerOptions = {},
528
528
  ): Promise<StatsServerHandle> {