move: move dev-server.js back to gui

I'm not sure why it was here, I thought I moved it already.
This commit is contained in:
KernelDeimos
2024-07-09 19:01:28 -04:00
parent 4e15c5fcf4
commit fafa36c73f
2 changed files with 2 additions and 79 deletions
+2 -3
View File
@@ -21,7 +21,6 @@ import { generateDevHtml, build } from "./utils.js";
import { argv } from 'node:process';
import chalk from 'chalk';
import dotenv from 'dotenv';
import path_ from 'path';
dotenv.config();
const app = express();
@@ -67,11 +66,11 @@ app.use(express.static('./'));
if(env === "prod"){
// make sure to serve the ./dist/ folder maps to the root of the website
app.use(express.static('./src/gui/dist/'));
app.use(express.static('./dist/'));
}
if(env === "dev"){
app.use(express.static('./src/gui/src/'));
app.use(express.static('./src/'));
}
export { app };