From a4c5b2b5e199daaca946934812627522b0a5a90c Mon Sep 17 00:00:00 2001 From: David Okulski <32730627+DavidOkulski@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:25:38 -0800 Subject: [PATCH] Updated app host --- app/client/package.json | 1 - app/src/index.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/client/package.json b/app/client/package.json index a091c8c..dfbd181 100644 --- a/app/client/package.json +++ b/app/client/package.json @@ -2,7 +2,6 @@ "name": "client", "version": "0.1.0", "private": true, - "proxy": "http://localhost:3000", "dependencies": { "@bcgov/citz-imb-sso-react": "^1.0.1", "@bcgov/design-system-react-components": "^0.4.0", diff --git a/app/src/index.js b/app/src/index.js index 5971a04..ecf2b77 100644 --- a/app/src/index.js +++ b/app/src/index.js @@ -41,7 +41,7 @@ app.get('*', (req, res) => { res.sendFile(path.join(__dirname, '../client/build', 'index.html')); }); -app.listen(port, () => { - console.log(`Server running on http://localhost:${port}`); -}); - +const host = process.env.HOST || 'localhost'; +app.listen(port, host, () => { + console.log(`Server running on http://${host}:${port}`); +}); \ No newline at end of file