diff --git a/app/_lib/upload.ts b/app/_lib/upload.ts index 4f32bfd..4913cad 100644 --- a/app/_lib/upload.ts +++ b/app/_lib/upload.ts @@ -23,8 +23,7 @@ export default async function uploadOss(file: File, root: string) { "Content-Type": file.type, }, }) - .then((res) => { - console.log(res); + .then((res: { name: string }) => { return ossBase + "/" + res.name; }); } diff --git a/package.json b/package.json index bf6fc48..56f6459 100644 --- a/package.json +++ b/package.json @@ -49,5 +49,11 @@ "postcss": "^8.5.1", "tailwindcss": "^4.0.4", "typescript": "^5" + }, + "pnpm": { + "onlyBuiltDependencies": [ + "bcrypt", + "sharp" + ] } }