test(rfid): intial trials built

This commit is contained in:
2025-03-13 21:37:04 -05:00
parent 0054c8f7d4
commit da04e9d35d
15 changed files with 386 additions and 1 deletions

View File

@@ -8,7 +8,13 @@ import fs from "fs";
export const serversCheckPoint = async () => {
let servers: any;
fs.readFile("./data.json", "utf8", (err, data) => {
let filePath: string;
if (process.env.NODE_ENV === "development") {
filePath = "./server/services/server/utils/serverData.json";
} else {
filePath = "./dist/server/services/server/utils/serverData.json";
}
fs.readFile(filePath, "utf8", (err, data) => {
if (err) {
console.error("Error reading JSON file:", err);
return;