Skip to content

Commit 09456a9

Browse files
committed
Merge branch 'main' into deploy [CF-Pages-Skip]
2 parents 60853d3 + 76dc902 commit 09456a9

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# HuggingFace Proxy
22

33
🤗 一个简洁高效的 HuggingFace 代理服务,基于 Cloudflare Workers。
4-
体验地址:https://hf.rimuru.cc
4+
体验地址:https://hf.rimuru.work
55

66
## ✨ 特性
77

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"scripts": {
77
"build": "node build.js",
88
"dev": "npm run build && wrangler pages dev .",
9-
"deploy": "npm run build && wrangler pages deploy ."
9+
"dev:worker": "npm run build && wrangler dev --config wrangler.worker.toml",
10+
"deploy": "npm run build && wrangler pages deploy .",
11+
"deploy:worker": "npm run build && wrangler deploy --config wrangler.worker.toml"
1012
},
1113
"devDependencies": {
1214
"esbuild": "^0.24.0",

wrangler.worker.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name = "hf-proxy"
2+
main = "_worker.js"
3+
compatibility_date = "2025-01-01"
4+
5+
[vars]
6+
RESTRICT_BROWSER_ACCESS = "true"

0 commit comments

Comments
 (0)