cloudflare worker 应用之边缘计算jsproxy

项目地址:

https://github.com/EtherDream/jsproxy

首先,你需要一个cf帐户

进入worker创建

创建取子域名字随便,好看就行

创建完以后,左边代码区代码清空

然后复制这里面的内容

https://github.com/EtherDream/jsproxy/blob/master/cf-worker/index.js

其中的 const ASSET_URL = 'https://etherdream.github.io/jsproxy' 是个导航主页默认就好,不理会。

点击部署按钮,即可。

然后用xxx.xxx.worker.dev访问就行。

我的测试页

https://jsw.quwei.workers.dev/

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注