index.html → _worker.js

拖入本地 index.html,生成可直接部署的 Worker 单文件

↑
点击选择 或 拖入 index.html
只在本机读取,不联网、不上传
未选择文件
_worker.js
等待选择文件
选择 index.html 后,这里显示完整生成的代码
Pages:创建项目 → Upload assets → 上传 _worker.js
Workers:Create Worker → 粘贴代码 → Deploy