Skip to content

Commit

Permalink
Merge pull request #12 from KamranBiglari/patch-1
Browse files Browse the repository at this point in the history
Update serverInfo.ts
  • Loading branch information
oxdev03 authored Apr 27, 2024
2 parents 32e6aaa + 3a97ec3 commit 3a83bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/utils/serverInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { IServerInfo } from "../types/info";
export default async function getServerInfo(): Promise<IServerInfo> {
const mem = await si.mem();
return {
name: (await si.osInfo())?.hostname ?? "",
name: (process.env.SERVER_NAME || (await si.osInfo())?.hostname) ?? "",
uuid: (await si.system())?.uuid || (await si.uuid())?.os || "",
stats: {
cpu: (await si.currentLoad())?.currentLoad ?? 0,
Expand Down

0 comments on commit 3a83bff

Please sign in to comment.