Update new.ts

This commit is contained in:
Sam Poder 2023-02-25 09:22:20 +08:00 committed by GitHub
parent 0f7e045408
commit 2cc43383d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,8 +31,9 @@ const deploy = async (
},
}),
});
const json = await req.json();
const baseURL = json.url;
const json = await req.text();
console.log(json)
const baseURL = JSON.parse(json).url;
const fileURLs = files.map((f) => "https://" + baseURL + "/" + f.path);
return { status: req.status, fileURLs };