From 59240f3f9c1722a82c56b9e9490c252e60c0136d Mon Sep 17 00:00:00 2001 From: marlonerler Date: Fri, 5 Jul 2024 20:01:46 +0200 Subject: [PATCH] fix static path --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 770c364..7c704c3 100755 --- a/index.ts +++ b/index.ts @@ -16,7 +16,7 @@ import { ServerWebSocket } from "bun"; import { getConfig } from "./config-handler"; // CONFIG -const staticDir = "static/dist"; +const staticDir = Path.join(Path.dirname(import.meta.path), "static/dist"); const defaultPage = "index.html"; // TYPES