refactor(functions): 重构静态资源处理逻辑,使用getAssetFromKV和ASSETS API

优化静态资源处理逻辑,移除自定义的handleStaticAssets函数,改用Cloudflare的getAssetFromKV和ASSETS API
添加对SPA路由的支持,当资源不存在时返回index.html
更新依赖并清理不再使用的代码
This commit is contained in:
2025-10-08 16:24:59 +08:00
parent 0faea53617
commit 32956bad14
21 changed files with 4277 additions and 687 deletions