Skip to content

Commit 25b9a52

Browse files
committed
feat: 添加圖片綁定至配置,更新 worker 環境以支持圖片資源
1 parent 1f3d6cc commit 25b9a52

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

worker-configuration.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* eslint-disable */
2-
// Generated by Wrangler by running `wrangler types` (hash: d0e3937095cad28325a958a570d1d1c6)
2+
// Generated by Wrangler by running `wrangler types` (hash: 8a051cd87ced37134e6c8bf30383ed17)
33
// Runtime types generated with workerd@1.20260526.1 2026-01-28 nodejs_compat
44
interface __BaseEnv_Env {
5+
IMAGES: ImagesBinding;
56
CF_VERSION_METADATA: WorkerVersionMetadata;
67
ASSETS: Fetcher;
78
timezone: "Asia/Taipei";

wrangler.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"binding": "ASSETS",
1616
"run_worker_first": ["/", "!/image/*"],
1717
},
18+
"images": { "binding": "IMAGES" },
1819
"placement": {
1920
"mode": "smart",
2021
},

0 commit comments

Comments
 (0)