refactor(functions): 重构静态资源处理逻辑,使用getAssetFromKV和ASSETS API
优化静态资源处理逻辑,移除自定义的handleStaticAssets函数,改用Cloudflare的getAssetFromKV和ASSETS API 添加对SPA路由的支持,当资源不存在时返回index.html 更新依赖并清理不再使用的代码
This commit is contained in:
1074
.wrangler/tmp/dev-C1gQCM/[[path]].js
Normal file
1074
.wrangler/tmp/dev-C1gQCM/[[path]].js
Normal file
File diff suppressed because one or more lines are too long
8
.wrangler/tmp/dev-C1gQCM/[[path]].js.map
Normal file
8
.wrangler/tmp/dev-C1gQCM/[[path]].js.map
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user