Skip to content

Build your personal knowledge base with Trilium Notes

chore(nx/server): resource dir

Elian Doranb44876ee08eb
diff --git a/apps/server/src/services/resource_dir.ts b/apps/server/src/services/resource_dir.ts
index 3a1de62d2d..a336bd3b87 100644
--- a/apps/server/src/services/resource_dir.ts
+++ b/apps/server/src/services/resource_dir.ts
@@ -2,8 +2,8 @@ import log from "./log.js";
import path from "path";
import fs from "fs";
-import { fileURLToPath } from "url";
-export const RESOURCE_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../assets");
+import { getResourceDir } from "./utils.js";
+export const RESOURCE_DIR = path.join(getResourceDir(), "assets");
// where the "trilium" executable is
const ELECTRON_APP_ROOT_DIR = path.resolve(RESOURCE_DIR, "../..");