fedimbed: fix path resolving wrong

This commit is contained in:
Cynthia Foxwell 2023-07-25 21:24:24 -06:00
parent 9af670dbeb
commit 2ba594d447
1 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,9 @@ async function resolvePlatform(url) {
}
const keyId = "https://hf.c7.pm/action#main-key";
const privKey = fs.readFileSync(path.resolve("../../priv/private.pem"));
const privKey = fs.readFileSync(
path.resolve(__dirname, "../../priv/private.pem")
);
async function signedFetch(url, options) {
const urlObj = new URL(url);