fedimbed: fix path resolving wrong

This commit is contained in:
Cynthia Foxwell 2023-07-25 21:24:24 -06:00
parent 9af670dbeb
commit 2ba594d447

View file

@ -68,7 +68,9 @@ async function resolvePlatform(url) {
} }
const keyId = "https://hf.c7.pm/action#main-key"; 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) { async function signedFetch(url, options) {
const urlObj = new URL(url); const urlObj = new URL(url);