mirror of
https://gitbruv.vercel.app/api/git/bruv/gitbruv.git
synced 2025-12-20 23:24:09 +01:00
fix?
This commit is contained in:
parent
9a3ca83fd7
commit
4395d0fdce
3 changed files with 17 additions and 17 deletions
|
|
@ -52,6 +52,7 @@ export function createR2Fs(repoPrefix: string) {
|
|||
|
||||
const writeFile = async (filepath: string, data: Buffer | string): Promise<void> => {
|
||||
const key = getKey(filepath);
|
||||
console.log("[R2FS] writeFile:", key, "size:", typeof data === "string" ? data.length : data.length);
|
||||
await r2Put(key, typeof data === "string" ? Buffer.from(data) : data);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue