mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 13:23:28 +00:00
remove bloom, network dev server
This commit is contained in:
parent
55e52eb2ec
commit
0e2c2aea01
|
@ -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}`);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue