1
0
Fork 0
mirror of https://gitbruv.vercel.app/api/git/bruv/gitbruv.git synced 2025-12-20 23:24:09 +01:00
This commit is contained in:
Ahmet Kilinc 2025-12-20 04:06:54 +00:00
parent 9a3ca83fd7
commit 4395d0fdce
3 changed files with 17 additions and 17 deletions

View file

@ -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);
};