- click the "Deploy With Workers" button
- follow the instructions to fork and deploy
- update routes as you requirement
- 使用 SwitchHosts 把域名解析到本地
如果 docker 宿主机是 Windows 子系统,ip 需要设置成 192.168.x.x 而不是 127.0.0.1
- 为域名生成 ssl 证书
使用
mkcert
生成自定义证书时 docker daemon 好像无法识别 rootCA 所以无法使用,建议从阿里云申请
- 启动 dev 服务:
npm start
- 先启动 dev 服务
- 打开侧边栏上的
运行和调试
菜单,运行Wrangler
如果开发主机所在网络也无法访问 docker hub,则需要使用 Proxifier