bundle exectuable

This commit is contained in:
Flam3rboy
2021-07-10 19:01:53 +02:00
parent cce9358d85
commit c22fe86c46
5 changed files with 46 additions and 4 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ export class FosscordServer extends Server {
app.use("/api/v9", prefix);
this.app = app;
this.app.use(ErrorHandler);
const indexHTML = await fs.readFile(path.join(__dirname, "..", "client_test", "index.html"), { encoding: "utf8" });
const indexHTML = fs.readFileSync(path.join(__dirname, "..", "client_test", "index.html"), { encoding: "utf8" });
this.app.use("/assets", express.static(path.join(__dirname, "..", "assets")));