Skip to content

Commit 7f25b31

Browse files
author
Pierre Jiang
committed
更新 README 文档以反映新的 Workers 部署步骤,删除不再使用的 _worker.js 文件,并将入口文件更改为 src/index.js
1 parent 9f56e2d commit 7f25b31

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
## 部署方式
88

9-
- **部署 Pages**`Fork 项目` --> `创建 Pages` --> `连接 GitHub` --> `选择分支` --> `保存并部署`
10-
11-
- **部署 Workers**`创建 Workers` --> `复制` [\_worker.js](https://github.com/pierreteam/cfworker-image-proxy/blob/main/_worker.js) --> `保存并部署`
9+
- **部署 Workers**`创建 Workers` --> `复制` [src/index.js](https://github.com/pierreteam/cfworker-image-proxy/blob/main/src/index.js) --> `粘贴到 _worker.js` --> `保存并部署`
1210

1311
- **部署 Workers (Wrangler CLI)**: `Clone 项目` --> 执行命令 `npm install`,安装依赖 --> 执行命令 `npm run deploy`,部署
1412

File renamed without changes.

wrangler.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name = "image-proxy"
2-
main = "_worker.js"
32
compatibility_date = "2025-02-21"
43

5-
minify = true
4+
main = "src/index.js"
65

76
workers_dev = true
87
preview_urls = false
8+
minify = true
9+
upload_source_maps = false
910

1011
[dev]
1112
ip = "0.0.0.0"

0 commit comments

Comments
 (0)