refactor: 将文件请求由app端转到server端
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m2s

This commit is contained in:
2025-11-12 18:19:21 +08:00
parent a5f3895794
commit a520775a8d
5 changed files with 49 additions and 28 deletions

View File

@ -41,7 +41,7 @@ export async function getFileMeta(id: string): Promise<FileMeta | null> {
width: file.width ?? undefined,
height: file.height ?? undefined,
uploaded_on: file.uploaded_on ?? undefined,
url: `${baseUrl}/assets/${file.id}`,
url: `/api/assets/${file.id}`,
previewable: isPreviewable(file.type),
};
} catch (error) {