From 24bc8985d0f5248b3a455abf46ae91a458baa8c9 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 4 Oct 2025 11:39:35 +0000 Subject: [PATCH] __filename --- src/daemon.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/daemon.ts b/src/daemon.ts index 9ba89079..6402a940 100644 --- a/src/daemon.ts +++ b/src/daemon.ts @@ -4,6 +4,10 @@ import fs from "node:fs"; import path from "node:path"; import { setTimeout as delay } from "node:timers/promises"; +import { fileURLToPath } from "node:url"; + +const __filename = fileURLToPath(import.meta.url); +//const __dirname = path.dirname(__filename); // ============ 환경설정 ============ const REQUIRE_PUBLIC = (process.env.REQUIRE_PUBLIC ?? "true").toLowerCase() === "true";