From 0e2c2aea01d8397c6457cd91a24f1c61667b8309 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Mon, 20 Jun 2022 01:34:27 -0700 Subject: [PATCH] remove bloom, network dev server --- apps/landing/server/index.ts | 14 ++++++++++++++ apps/landing/src/components/AppEmbed.tsx | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/apps/landing/server/index.ts b/apps/landing/server/index.ts index 4a8d8a8fb..a4b603d5b 100644 --- a/apps/landing/server/index.ts +++ b/apps/landing/server/index.ts @@ -1,5 +1,6 @@ import compression from 'compression'; import express from 'express'; +import { networkInterfaces } from 'os'; import { createPageRenderer } from 'vite-plugin-ssr'; const isProduction = process.env.NODE_ENV === 'production'; @@ -40,4 +41,17 @@ async function startServer() { const port = process.env.PORT || 8003; app.listen(port); console.log(`Server running at http://localhost:${port}`); + + const nets = networkInterfaces(); + + for (const name of Object.keys(nets)) { + // @ts-ignore + for (const net of nets[name]) { + if (net.family === 'IPv4' && !net.internal) { + app.listen(Number(port), net.address, () => { + console.log(`Server running at http://${net.address}:${port}`); + }); + } + } + } } diff --git a/apps/landing/src/components/AppEmbed.tsx b/apps/landing/src/components/AppEmbed.tsx index b2d592ba3..2da317681 100644 --- a/apps/landing/src/components/AppEmbed.tsx +++ b/apps/landing/src/components/AppEmbed.tsx @@ -58,7 +58,7 @@ const AppEmbed = () => { return (
- {renderBloom && ( + {/* {renderBloom && (
@@ -66,7 +66,7 @@ const AppEmbed = () => {
- )} + )} */}