require("dotenv").config(); const fastify = require("fastify"); const si = require("systeminformation"); const app = fastify({}); app.get("/", async (req, rep) => { const data = await si.getAllData(); rep.send(data); }); app.listen({ port: process.env.PORT || 3000, host: process.env.HOST || "0.0.0.0", });