From 97cec5a5f9b1740b85489b26ed853c7181e72926 Mon Sep 17 00:00:00 2001 From: Adam Roe Date: Mon, 15 Jul 2024 20:55:29 +1000 Subject: [PATCH] Allow access from any host --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index f499577..1996d3d 100644 --- a/server/index.js +++ b/server/index.js @@ -38,7 +38,7 @@ const app = express(); app.use(cors()); app.use(bodyParser.json()); app.use(express.static(path.join(`${__dirname}/${DIST_DIR}`))); -app.listen(PORT, "localhost", async () => { +app.listen(PORT, async () => { await open(`http://localhost:${PORT}`); console.log(`${appName} v${ver} has started on port ${PORT}`); });