From c22fe86c46299f13f44180ce2b652f57d5a4e794 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 10 Jul 2021 19:01:53 +0200 Subject: :sparkles: bundle exectuable --- src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Server.ts b/src/Server.ts index 1a814f10..a1b51d21 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -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"))); -- cgit 1.5.1