move out -> static

This commit is contained in:
Evan
2025-03-05 13:24:54 -08:00
parent caaf37699d
commit 1a0729a427
+2 -2
View File
@@ -24,7 +24,7 @@ const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
app.use(express.json());
// Serve static files from the 'out' directory
app.use(express.static(path.join(__dirname, "../../out")));
app.use(express.static(path.join(__dirname, "../../static")));
app.use(express.json());
app.set("trust proxy", 3);
@@ -292,5 +292,5 @@ function sleep(ms: number): Promise<void> {
// SPA fallback route
app.get("*", function (req, res) {
res.sendFile(path.join(__dirname, "../../out/index.html"));
res.sendFile(path.join(__dirname, "../../static/index.html"));
});