fix(upload-package): 优化下载前文件资源校验,避免错误页面被下载

在下载安装包前增加 HEAD 请求校验,确认资源存在且为正确的文件类型,
防止后端错误页(如 f.txt)被当作安装包下载。若 HEAD 因 CORS 限制失败,
则回退为直接下载,避免误报。
This commit is contained in:
2026-08-09 12:34:28 +08:00
parent 39936e7634
commit 0648032e84
3 changed files with 31 additions and 4 deletions

3
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,3 @@
allowBuilds:
'@parcel/watcher': true
es5-ext: true