remove bloom, network dev server

This commit is contained in:
Jamie Pine 2022-06-20 01:34:27 -07:00
parent 55e52eb2ec
commit 0e2c2aea01
2 changed files with 16 additions and 2 deletions

View file

@ -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}`);
});
}
}
}
}

View file

@ -58,7 +58,7 @@ 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" />
@ -66,7 +66,7 @@ const AppEmbed = () => {
<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(