Skip to content

Commit

Permalink
remove bloom, network dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiepine committed Jun 20, 2022
1 parent 55e52eb commit 0e2c2ae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions 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';
Expand Down Expand Up @@ -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}`);
});
}
}
}
}
4 changes: 2 additions & 2 deletions apps/landing/src/components/AppEmbed.tsx
Expand Up @@ -58,15 +58,15 @@ const AppEmbed = () => {

return (
<div className="w-screen">
{renderBloom && (
{/* {renderBloom && (
<div className="relative max-w-full sm:w-full sm:max-w-[1200px] mx-auto">
<div className="absolute w-full overflow-visible top-[100px] h-32">
<div className="left-0 mt-22 bloom bloom-one" />
<div className="left-[34%] -mt-32 bloom bloom-three " />
<div className="right-0 invisible sm:visible bloom bloom-two" />
</div>
</div>
)}
)} */}
<div className="relative z-30 h-[328px] px-5 sm:h-[428px] md:h-[428px] lg:h-[628px] mt-8 sm:mt-16">
<div
className={clsx(
Expand Down

0 comments on commit 0e2c2ae

Please sign in to comment.