fix: unable to change certificate path for running from source (#3582)

Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
Yuichi NakaiandMeier Lukas authored and GitHub committed 2025-07-10 22:28:33 +02:00
1 parent 54392dcea4
commit f1143e54a0
2 files changed
+8 -4

No files matched your search

+2 -3
View File
@@ -15,9 +15,8 @@ import { db } from "@homarr/db";
import type { trustedCertificateHostnames } from "@homarr/db/schema";
const getCertificateFolder = () => {
return env.NODE_ENV === "production"
? path.join("/appdata", "trusted-certificates")
: process.env.LOCAL_CERTIFICATE_PATH;
if (env.NODE_ENV !== "production") return process.env.LOCAL_CERTIFICATE_PATH;
return process.env.LOCAL_CERTIFICATE_PATH ?? path.join("/appdata", "trusted-certificates");
};
export const loadCustomRootCertificatesAsync = async () => {